public void RenameSchema(ISchemaStructure schema, string name) { SchemaStructure s = Structure.FindOrCreateSchema(schema); AddOperation(new AlterOperation_RenameSchema { OldObject = s, NewName = new NameWithSchema(name) }); }
public void DropSchema(ISchemaStructure schema) { SchemaStructure s = Structure.FindOrCreateSchema(schema); AddOperation(new AlterOperation_DropSchema { OldObject = s }); }
public void CreateSchema(ISchemaStructure schema) { SchemaStructure s = new SchemaStructure(schema); AddOperation(new AlterOperation_CreateSchema { NewObject = s }); }
public SchemaStructure AddSchema(ISchemaStructure schema, bool reuseGroupId) { var newsch = new SchemaStructure(schema); if (!reuseGroupId) { newsch.GroupId = Guid.NewGuid().ToString(); } Schemata.Add(newsch); return(newsch); }