The model backing the 'DataContext' context has changed since the database was created

后端 未结 4 589
迷失自我
迷失自我 2021-01-17 14:29

I am trying to use Code First with Migrations. Even though there are no current changes to my model, I\'m getting an exception. When I add a migration, the up and down are e

4条回答
  •  情深已故
    2021-01-17 15:22

    My issue ended up being a conflict between Automatic Migrations being enabled and the initializer MigrateDatabaseToLatestVersion as described here.

提交回复
热议问题