Tuesday, July 29, 2014

Entity Framework–Rollback a migration

One of the features that Entity Framework offers is the support for Code First Migrations. Migrations allow you to create ‘Up’ and ‘Down’ scripts to upgrade your database while your Entity Framework models evolves over time.

Last week I had some trouble with Code First Migrations, so I needed a way to rollback to an earlier version of my database. Thanks to Code First migrations, I was able to do this by executing 1 line on the Package Manager Console:

That’s all…

No comments: