Click here to Skip to main content
15,904,823 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am using Entity Framework 5.0.0. I add table in my database for ex. i add new table in my database and use "Update Model from Database" to update and after that i got lot of error.

I want to know why this happen and how i can update EF without getting any error.
Posted
Comments
JoCodes 12-Oct-13 6:10am    
"lots of error"? what sort of error??Please post the error for a accurate response

Check below article of "An Introduction to Entity Framework for Absolute Beginners".That will help you for get basic idea about how to work with any EF version.

An Introduction to Entity Framework for Absolute Beginners
 
Share this answer
 
Check the below link for Update the Model from DB using DBFirst approach .

http://msdn.microsoft.com/en-us/data/jj206878.aspx[^]

Hope this helps
 
Share this answer
 
delete your .edmx(entitiy model) file in your application

and also remove connection string in web.config file

then

generate new entity model.


I have same problem occur then i have follow above step..

i don't know why this happen but try above step it will help you.
 
Share this answer
 
when you go to update from database that time choose option add and select your table which u are added then simply update your edmx.
 
Share this answer
 
Comments
Vi(ky 17-Oct-13 3:56am    
I already done this but same result

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