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