Why is my edmx file not updating

前端 未结 7 1658
傲寒
傲寒 2021-02-14 12:01

I have a database first ASP.NET MVC 5 EF6 project. I\'m using VS2015 CE. When I change my database (SQL Server 2012), I then go to VS to update my edmx file like this:

7条回答
  •  遥遥无期
    2021-02-14 12:21

    This is a well-known problem with Entity Framework.

    "Update Model from Database" continues to be a hit-and-miss affair. Sometimes it works, often it doesn't.

    Personally, I just delete the "updated" table from my .edmx file, then re-add it. Then it seems to be work okay.

提交回复
热议问题