基于数据库平台的实体框架模型之间的差异 [英] Differences between Entity Framework Models based on Database Platforms

查看:178
本文介绍了基于数据库平台的实体框架模型之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如果我在Oracle上生成实体框架模型,然后在SQL上生成另一个实体框架模型服务器,两个实体模型之间是否存在任何潜在的差异?



我是否可以互换使用这些实体模型?如果没有,我如何处理使用相同的实体连接到不同的数据库平台?我是否需要使用某种类型的工厂方法来实现此目的?



谢谢。

解决方案

类似的问题已在以下主题中得到解答:


http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=3966349&SiteID=1



如果这不能回答您的问题,请回复更多详情。



< p align = left>谢谢,


Maurycy


 

If I generate an Entity Framework Model on Oracle and then another Entity Framework Model on SQL Server, should there be any underlying differences between the 2 Entity Models? 

 

Should I be able to use these Entity Models interchangeably?  If not, how do I handle using the same Entities to connect to different database platforms?  Do I need to use some type of Factory Method to accomplish this?

 

Thanks.

解决方案

Similar question was answered already in the following thread:

http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=3966349&SiteID=1

 

If this does not answer your questions, plesase post back more details.

 

Thanks,

Maurycy


这篇关于基于数据库平台的实体框架模型之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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