After updating Entity Framework model, Visual Studio does not see changes

前端 未结 9 1249
臣服心动
臣服心动 2021-01-30 20:07

If I do any changes to my EF 5.0 model, VS does not seem to see the changes. I have tried adding a new table, which shows up fine in the model, but then if I try to use it somew

9条回答
  •  日久生厌
    2021-01-30 20:45

    I've also experienced this problem with none of the classes being generated under the model.tt file. In my case it was down to issues with how I had built the DB in SQL2012. I'd set a column in a table to nullable that was also a foreign key and although I think you should be able to do this it caused a problem in EF5.

    As soon as this was cleared and the diagram updated from the database they reappeared.

    EF5 VS2013

提交回复
热议问题