Why is my edmx file not updating

前端 未结 7 1655
傲寒
傲寒 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:37

    I've had this issue on a number of occasions. For simple problems I've edited the edmx file by opening in the code editor ( Open With... > Source Code (Text) Editor ).

    Locate the table by looking for by searching for EntityType Name="your table name".

    Typically I see an entry that doesn't look right, delete it, save and close the file. Open the edmx the usual way and refresh the model and Presto problem solved.

提交回复
热议问题