The model backing the context has changed since the database was created. Consider using Code First Migrations to update the database

this happens because your model names have been changed. If you want entity framework to automatically create tables for you add the below line in Global.asax.cs

Database.SetInitializer<YOURDATABASECONTEXCLASS>(null);

Leave a Reply

Your email address will not be published. Required fields are marked *