lundi 7 décembre 2015

How to rollback EF 7 migrations programmatically?

I would like to write a unit test which migrates to the latest schema then tears back down to nothing.

For the migration I can do :

db.Database.Migrate();

but how to I rollback?

Aucun commentaire:

Enregistrer un commentaire