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); } }
public DropTable(DbObject @object, IDbConnection connection) : base(MergeObjectType.Table, MergeActionType.Delete, @object.QualifiedName()) { _cn = connection; _object = @object; _foreignKeys = GetReferencingForeignKeys(connection, @object.ObjectID); }