开发者

Using Multiple databases with a common code

I just want to be able to store and access d开发者_如何学编程ata from ACCESS,SQLSERVER,SQLCE,SQLLITE based on the users choice. Is there a SINGLE library that can help me do this job in c#?

I would like to simply change the connection string and not the code.

Is there any way for this?

Thanks.


NHibernate or SubSonic can talk to different types of databases, but they may not support all the databases you list (MS Access in particular doesn't seem to be supported by SubSonic). If you're going to use NHibernate, I'd take a look at Fluent NHibernate as it does away with mapping files that NHibernate depends on. I'm only just getting started with it myself, but it's looking good so far.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜