实体框架支持Oracle和SQL Server [英] Entity Framework support for Oracle and SQL Server
本文介绍了实体框架支持Oracle和SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们可以在运行时创建一个可以连接到不同数据提供者(特别是Oracle和SQL Server)的EF模型(csdl)吗?
解决方案
是。有关这样做的示例代码,请参见 http://code.msdn.com/EFQuerySamples (它现在支持6个提供商,但通过修改app.config文件并提供自己的ssdl来添加更多内容是微不足道的。
Can we create a single EF model (csdl) that can be connected to different data providers, specifically Oracle and SQL Server, at run-time?
解决方案
Yes. See http://code.msdn.com/EFQuerySamples for sample code that does just that (it supports 6 providers right now, but it's trivial to add more just by modifying app.config file and providing your own ssdl).
这篇关于实体框架支持Oracle和SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文