Click here to Skip to main content
15,887,346 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have just started with tutorials on Entity Framework(version 6) and also used it in one of my small project.
There are few questions lingering in my mind...does the model in entity framework is auto updated? what if i am changing datatype for any column in database or adding new column...also what if the definition of stored procedure is changed in database...will it be reflected in model as well.
As i have to provide my solution to client, i need to get clear with these questions.
Posted
Comments

1 solution

Hi Sneha,


your question is , does the model in entity framework is auto updated?
Answer is No, And If you want to update your model according to the database then do following steps:-

Go to model.edmx right click then select--> update model from database , it will open one wizard in that you can select your database entities that you want to update to your model i.e. your table , procedures etc.
--> after selecting --> click on finish button in the wizard it will automatically update your model according to your selected items.

Thanks,
Mukesh
 
Share this answer
 
v3

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