When you scaffold an existing Entity Framework model, using MVC5 scaffolding in Visual Studio 2013, you can easily run into the issue of “ The model backing the <DbContextName> context has changed since the database was created ” as shown below. For example, in an MVC project, add the following model. public class Product { public int Id { get; set; } public string Name { get; set; } } Scaffold the Product model using “MVC 5 Controller with views, using Entity Framework” scaffolder in Visual Studio 2013. View the generated pages, Index/Edit/Details/Create, to verify things are working properly. Now, suppose we need to modify the Product model to add more fields, like Description and Category. public class Product { public int Id { get;...(read more)
Go to the complete details ...