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

前端 未结 9 1240
臣服心动
臣服心动 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:59

    Are you working in an N-Tiered project? If so, try rebuilding your Data Layer (or wherever your EDMX file is stored) before using it.

    0 讨论(0)
  • 2021-01-30 21:02

    If this is the bug with the edmx file located in a folder it is now fixed - download and install VS 2012 Update 1. You can get it from: http://www.microsoft.com/visualstudio/eng/downloads#d-visual-studio-2012-update

    0 讨论(0)
  • 2021-01-30 21:05

    You should have a <XXX>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

    0 讨论(0)
提交回复
热议问题