Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all,
i am using ado.net entity data model for my application with MVC database first approach. Now the issue is that whenever i tried to update my entity model by following these steps
1 - right click on model designer
2- update model from database
3- Add tables
4- Finish

The new entity (table) comes on the designer screen but the entity doesn't comes in model.Or if just i updates any field and refresh the model the same behaviour occurs, it will update the designer not the originol entity. Then i have to delete the model and re-generate it from database then it works fine, but this is not the solution of my problem .
Kindly give me the solution ASAP.
thanks in advance.
Posted
Updated 15-Aug-13 21:27pm
v2

1 solution

SQL
1 - right click on model designer
2- update model from database
3- Add tables
4- Finish

----------------------------
After doing above steps,

5 . Right click on Model designer

6. Add code generation item

-> Select Visual c# -> Add New Model.tt fie (EF 5.x DBContext Generator)
-> Add
 
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