Reputation: 1551
I made some changes to Entity and I successfully executed "update-database -verbose" in packageManager console and I can see changes reflected in the azure database .
Then I did a deployment to azure cloud and I am getting the Error message from Azure cloud
"The model backing the 'myDBContext' context has changed since the database was created. Consider using Code First Migrations to update the database"
I tried setting Configuration.AutoDetectChangesEnabled = false and a re-deployment
But still I am getting same error .
Please help ..
Upvotes: 2
Views: 3541
Reputation: 1551
I resolved this issue by adding
Database.SetInitializer<MyContext>(null);
to Application_Start() inside Global.asax.cs
Upvotes: 8