Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use db-first in EF, EDM designer auto generates entity classes according to my database table, but when i add new columns in these tables, the entity classes doesn't change, why?

What I have tried:

I create a edmx file in ef 6.0, and i use db first, i want to change tables, but entity classes doesn't change...
Posted
Updated 10-Aug-17 23:23pm
Comments
F-ES Sitecore 11-Aug-17 4:29am    
How does Visual Studio know your database has changed and you want to amend all of your classes? If you make changes you need to update your edmx designer to reflect those changes by telling it to update the model from the database.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900