Resetting Entity Framework Migrations to a clean Slate
Posted by: Rick Strahls WebLog,
on 14 Jan 2016 |
View original | Bookmarked: 0 time(s)
I've had a number of problems with Entity Framework Migrations getting out of whack to the point were I can't get the database and the migrations into sync to accept new changes. I've found that rather than spending hours fixing out of whack migrations it's sometimes much easier to simply wipe the slate clean and create a new initial migration. This post describes the steps on how to remove existing migrations and create a new initial migration from the current schema.