public void RunMigration(RecognizedMigrationFile recognizedType, MigrationDirection direction = MigrationDirection.Up) { var migration = this.CreateInstance <Migration>(recognizedType.Type); if (direction == MigrationDirection.Up) { migration.Up(); } else { migration.Down(); } }
public void RunSeeder(RecognizedMigrationFile recognizedType) { var seeder = this.CreateInstance <Seeder>(recognizedType.Type); seeder.Run(); }