コード例 #1
0
        public static void FixMigrationUp <T>(MigrationBuilder migrationBuilder, ShamanOptions shamanOptions = null)
            where T : DbContext
        {
            var tmp = new MigrationFixer(typeof(T), shamanOptions);

            tmp.FixMigrationUp(migrationBuilder);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 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);
 }