My project is built using ASP.NET MVC
and I've used Entity Framework 6 to access data from Sql Server
database. I am following Database first approach for EF6. Frequently I need to make changes in my Database schema like making column nullable, changing column names etc. Now option 'update model from database' works fine in some scenarios while in other it gives errors and my Models are not successfully updated.
I require clarification on below two queries:
- What is the best way to update my Models when there are some changes in my DB schema?;
- Are there some specific changes in DB for which EF fails to update Models?