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

前端 未结 9 1238
臣服心动
臣服心动 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 21:05

    You should have a Model.tt file somewhere which is the T4 template that generates your model classes.

    If it is in a different project, it will not update when you save the edmx file.

    Anyway, try right-clicking on it in Solution Explorer and choosing Run Custom Tool

提交回复
热议问题