Entity Framework - Start Over - Undo/Rollback All Migrations

后端 未结 5 645
忘了有多久
忘了有多久 2020-12-12 09:18

For some reason, my migrations appear to have been jumbled/corrupted/whatever. I\'m at the point where I just want to start over, so is there a way to completely undo all m

5条回答
  •  Happy的楠姐
    2020-12-12 09:45

    To be clear, if using LocalDb, when you want to start from scratch just delete the database via the Database Explorer and then type enable-migrations -force in the Package Manager Console. Do not delete the database via the App_Data folder or you will have the following issue.

提交回复
热议问题