将EF中所做的更改反映回数据库。 [英] Reflecting changes made in the EF back to the database.
问题描述
据我所知,如果我在EF中进行了更改,那么在数据库模式中启动这些更改的过程就是手动,痛苦和繁琐的过程。 这个版本在新版本中有所改进吗? 或者我首先做错了吗?
As far as I am aware if I make a change in the EF .. the process of initiating those changes in the schema of the database is a manual, painful and fiddly one. Has this been improved in the new version? Or am I doing wrong in the first place?
推荐答案
如果您正在进行模型优先或数据库优先,请查看
SQL Server开发人员工具,代号"Juneau" (以及
此视频)。
If you're doing model-first or database-first, check out SQL Server Developer Tools, Codename "Juneau" (and this video).
对于代码优先,请查看我们一直在做的工作
Code First Migrations (关注
我们的博客有关此内容的最新更新。
For code-first, check out the work we've been doing on Code First Migrations (follow our blog for the latest updates on this).
这篇关于将EF中所做的更改反映回数据库。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!