Beispiel #1
0
 public void Execute(Migrator Migrator, Database Database)
 {
     this.Migrator = Migrator;
     this.Database = Database;
     execute();
 }
Beispiel #2
0
 public static void DropTable <T>(this Migrator Migrator)
 => Migrator.DropTable(typeof(T));
Beispiel #3
0
 public static void DropTable(this Migrator Migrator, Type type)
 => Migrator.DropTable(TableInfo.FromPoco(type).TableName);
Beispiel #4
0
 public static void TruncateTable <T>(this Migrator Migrator)
 => Migrator.TruncateTable(typeof(T));
Beispiel #5
0
 public static void TruncateTable(this Migrator Migrator, Type type)
 => Migrator.TruncateTable(TableInfo.FromPoco(type).TableName);
Beispiel #6
0
 public static IAlterTableQueryProvider <T> AlterTable <T>(this Migrator Migrator)
 => Migrator.AlterTable <T>(TableMigratorInfo.FromPoco(typeof(T)).TableName);
Beispiel #7
0
 public static IAlterTableQueryProvider AlterTable(this Migrator Migrator, Type type)
 => Migrator.AlterTable(TableMigratorInfo.FromPoco(type).TableName);
Beispiel #8
0
 public static ICreateTableQueryProvider CreateTable(this Migrator Migrator, string tableName)
 => Migrator.CreateTable(new TableMigratorInfo {
     TableName = tableName
 });
Beispiel #9
0
 public static ICreateTableQueryProvider <T> CreateTable <T>(this Migrator Migrator)
 => Migrator.CreateTable <T>(TableMigratorInfo.FromPoco(typeof(T)));
Beispiel #10
0
 public static ICreateTableQueryProvider CreateTable <T>(this Migrator Migrator, bool autoDetectColumns)
 => Migrator.CreateTable(typeof(T), autoDetectColumns);
Beispiel #11
0
 public static bool TableExists(this Migrator Migrator, Type type)
 => Migrator.TableExists(TableInfo.FromPoco(type).TableName);
Beispiel #12
0
 public static bool TableExists <T>(this Migrator Migrator)
 => Migrator.TableExists(typeof(T));