Model backing a DB Context has changed; Consider Code First Migrations

前端 未结 13 575
旧巷少年郎
旧巷少年郎 2020-12-02 09:54

The model backing the \'MyDbContext\' context has changed since the database was created. Consider using Code First Migrations to update the database (http://

13条回答
  •  一整个雨季
    2020-12-02 10:26

    In case you did changes to your context and you want to manually make relevant changes to DB (or leave it as is), there is a fast and dirty way.

    Go to DB, and delete everything from "_MigrationHistory" table

提交回复
热议问题