コード例 #1
0
        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();
            }
        }
コード例 #2
0
        public void RunSeeder(RecognizedMigrationFile recognizedType)
        {
            var seeder = this.CreateInstance <Seeder>(recognizedType.Type);

            seeder.Run();
        }