コード例 #1
0
 public void DowngradeToPrevious()
 {
     if (runner.HasMigrationsToApplyRollback())
     {
         runner.Rollback(1);
     }
 }
コード例 #2
0
        private static void Downgrade(IMigrationRunner runner)
        {
            if (!runner.HasMigrationsToApplyRollback())
            {
                Console.WriteLine("No migration to rollback");
                return;
            }

            runner.Rollback(1);
        }