EF电动工具首先从数据库和EF数据库进行逆向工程。有什么不同? [英] EF power tools reverse engineer from database vs EF Database first. What is the difference?

查看:110
本文介绍了EF电动工具首先从数据库和EF数据库进行逆向工程。有什么不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有的sql server数据库,想要添加一个新的实体数据模型,我想指向那个现有的数据库。我想使用逆向工程来使它'代码优先'的风格。这有什么优点和缺点?数据库第一种方法在逆向工程中的优缺点是什么?我已将pocedure存储在我的数据库中。

I have an existing sql server database and want to add a new Entity Data Model which i want to point to that existing database.I want to use reverse engineer to make it 'code first' style. what is the advantage and disadvantage of this? What is the advantage and disadvantage of Database first approach on reverse engineering. I have stored pocedure in my database.

推荐答案

详细说明 [ ^ ]

上面的链接将清除我的怀疑。<现在,EF Code First非常方便且有光泽,即使在EF7中也只有Code First。但是在目前我们使用的EF5 / 6中,我们很少有人选择逆向工程。我在这里的投票将是DB First方法。

谢谢:)
Detailed Explaination[^]
The above link will clear your doubt I hope.
EF Code First is very handy and shiny now a days, even in EF7 there is only Code First. But in EF5/6 which currently we are using, there are few times we do not opt for reverse engineering. My vote here would be for DB First approach.
Thank you :)


这篇关于EF电动工具首先从数据库和EF数据库进行逆向工程。有什么不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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