Exemplo n.º 1
0
 public void DowngradeToPrevious()
 {
     if (runner.HasMigrationsToApplyRollback())
     {
         runner.Rollback(1);
     }
 }
Exemplo n.º 2
0
        private static void Downgrade(IMigrationRunner runner)
        {
            if (!runner.HasMigrationsToApplyRollback())
            {
                Console.WriteLine("No migration to rollback");
                return;
            }

            runner.Rollback(1);
        }