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



when you got this below error

The model backing the 'ModuleContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).


Then you need to set

Database.SetInitializer<ModuleContext>(null); in Application_start() method

No comments:

Post a Comment