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