Ejemplo n.º 1
0
        public static async Task PlanAndMigrate(this ISchemaMigrator migrator, IDbConnection connection, ISchemaManager targetManager, ObjectSchema targetSchema, MigrationOptions options)
        {
            var plan = await migrator.PlanMigration(
                connection : connection,
                targetManager : targetManager,
                targetSchema : targetSchema,
                options : options
                );

            await migrator.ExecuteMigration(
                connection : connection,
                targetManager : targetManager,
                migrationPlan : plan
                );
        }