Entity Framework 5 - Migrations and creating table from entity

情到浓时终转凉″ 提交于 2019-12-05 21:39:56
Ladislav Mrnka

Use code first migrations (either automatic or code based). If you are adding table to existing database create initial migration first and than add your new entity. All links are for EF 4.3 but the usage is exactly the same in EF 5.

andrewramka

For reference for anyone else having this problem, I had the same problem and my solution is here Entity Framework: Generating specific table if doesn't exist?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!