Search code examples
c#entity-frameworkdbcontextef-database-first

How to update entities from data model edmx in another project c# database first


I have a problem - when I update the data model edmx, the entities are not up to date. See the image below:


Solution

  • Generally speaking if you are doing Database-First you should update the database and let the data model refresh (right-click anywhere in the .edmx and select Update Model from Database...).