Updating model in EF Database First project

后端 未结 1 1891
渐次进展
渐次进展 2021-01-04 22:08

I\'ve inherited a project which uses Entity Framework Database First. I\'m trying to work out how to update the model classes when I update the database but I can\'t figure

相关标签:
1条回答
  • 2021-01-04 22:35

    You should have a T4 template ( extension .tt ) that generates your model classes.

    It may not run when you save your .edmx file, for example if it is in a different project.

    You can run it manually by right-clicking it in solution explorer and choosing "Run Custom Tool".

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