コード例 #1
0
 public RestoreTempTable(DbObject tempTable, Type modelType, IDbConnection connection, Dictionary <string, string> addColumns = null) : base(MergeObjectType.Table, MergeActionType.Load, $"Restore {tempTable.QualifiedName()}")
 {
     _tempTable  = tempTable;
     _modelTable = DbObject.FromTempName(tempTable);
     _modelType  = modelType;
     _addColumns = addColumns;
     if (addColumns == null)
     {
         _addColumns = NullMissingTempColumns(connection);
     }
 }
コード例 #2
0
ファイル: DropTable.cs プロジェクト: vebin/Postulate
 public DropTable(DbObject @object, IDbConnection connection) : base(MergeObjectType.Table, MergeActionType.Delete, @object.QualifiedName())
 {
     _cn          = connection;
     _object      = @object;
     _foreignKeys = GetReferencingForeignKeys(connection, @object.ObjectID);
 }