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