1

It is possible to run EF Core migrations programatically.

dbContext.Database.Migrate();

Is it possible to revert applied migrations also programatically?? I am looking for smth like this:

dbContext.Database.Migrate(0);

Thanks for any help in advance.

Bulchsu
  • 580
  • 11
  • 33

0 Answers0