Resetting Entity Framework Migrations to a clean Slate
Posted by: Rick Strahls WebLog,
on 14 Jan 2016 |
View original | Bookmarked: 0 time(s)
Not sure if this is a common occurrence, but I've had a number of occasions where Entity Framework migrations have left the state of migrations in an unusable state. Usually this happens after a large number of migrations have been applied and I get stuck to where I can't update a database with new migrations or roll back. It simply won't go. There are a number of hacks you can try to fix bonked migrations, but to be honest more often than not those simply don't work. So what do you do? I've found...