Entity Framework (ASP.NET): how do you update the column mapping after adding a column to the structure?

I added a column to Entity, and then I want to generate a database from a model or build a solution, and I get a message that the new column that I just added is not displayed. The database was previously created from the model without errors.

When I right-click on Entity and select Table Mapping, I can see that the old columns are displayed, but I do not see the path to m

+7
source share
4 answers

, " " ( ), - .edmx XML-, (Name Type) EntityType . , .edmx, .

+5

- Entity " ". "" , . "", . Entity, , , . , Microsoft .

+4

If you are just trying to update a single parameter, you can open the Model.edmx file and change this single parameter, but if it is more than one parameter, the option "update from the database" is better. It is important to note that the display of the table cannot be changed using VS.

0
source

The update did not work for me, as other answers suggest, or edited .edmx directly as xml. Delete the model and pull it out of the database again (using "Add New").

0
source

All Articles