public static void FixMigrationUp <T>(MigrationBuilder migrationBuilder, ShamanOptions shamanOptions = null) where T : DbContext { var tmp = new MigrationFixer(typeof(T), shamanOptions); tmp.FixMigrationUp(migrationBuilder); }
public static void FixMigrationUp <T>(MigrationBuilder migrationBuilder, ShamanOptions shamanOptions = null, [CanBeNull] GetModelTableNameDelegate getModelTableName = null) where T : DbContext { var tmp = new MigrationFixer(typeof(T), shamanOptions); tmp.FixMigrationUp(migrationBuilder, getModelTableName); }
public static void FixMigrationUp <T>(this MigrationBuilder migrationBuilder, ShamanOptions shamanOptions = null) where T : DbContext { if (migrationBuilder == null) { throw new ArgumentNullException(nameof(migrationBuilder)); } MigrationFixer.FixMigrationUp <T>(migrationBuilder, shamanOptions); }