Last post Aug 08, 2014 10:55 AM by MetalAsp.Net
Aug 08, 2014 10:49 AM|guhan77|LINK
I am using Entity framework in MVC 3.0 . In my code if i add new field in model and call controller and view it shows error.
The model backing the "GHContext" context has changed since database was created.
Do i need to again map the database to entity.
Please help how to solve this problem
Aug 08, 2014 10:55 AM|MetalAsp.Net|LINK
If you use code first approach, and you set things up properly, you just have to issue two commands in the package manager console: add-migration blah blah, followed by update-database. I can refer you to a tutorial or maybe you can Google/bing it yourself.