使用C#的通用数据访问 [英] Generic Data Access using C#

查看:80
本文介绍了使用C#的通用数据访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要开发数据库通用应用程序(使用WPF的Windows应用程序),因为将来数据库可能会从SQL更改为Oracle.所以我有这个要求.

我用谷歌搜索了一下,然后我有了一个想法,我们可以使用一些工厂模式来使用System.Data.Common和DbConnection.我非常担心标准和模式.

任何人都可以给我指导.
详细描述它的链接将很有帮助.谢谢.

I need to develop the Database generic Application (Windows application using WPF)since there could be a change in database from SQL to Oracle in future. So i had this requirement.

I googled and i got some idea that we can use System.Data.Common and DbConnection using some factory pattern.i''m much worried about the Standards and Patterns.

Can anyone please give me directions in doing it.
Links describing it in detail would be helpful. Thanks.

推荐答案

阅读以下内容:
Read the following : http://stackoverflow.com/questions/185474/c-sharp-retrieving-correct-dbconnection-object-by-connection-string[^]


这篇关于使用C#的通用数据访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆