Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Edited Unassigned: AutomaticMigrationsEnabled = false but Throwing Model Changed Exception [1393]

$
0
0
If you you have AutomaticMigrationsEnabled = false; but have a dbo._MigrationHistory and the Model has pending changes EF throws a "The model backing the '' context has change since database was created" exception.

One would expect that if migrations were turned off that it wouldn't bother checking for the migration history to do the comparison.

It seems regardless of migration settings EF always checks for Migration History table.

Viewing all articles
Browse latest Browse all 10318

Trending Articles