Exemple #1
0
        public void RenameSchema(ISchemaStructure schema, string name)
        {
            SchemaStructure s = Structure.FindOrCreateSchema(schema);

            AddOperation(new AlterOperation_RenameSchema {
                OldObject = s, NewName = new NameWithSchema(name)
            });
        }
Exemple #2
0
        public void DropSchema(ISchemaStructure schema)
        {
            SchemaStructure s = Structure.FindOrCreateSchema(schema);

            AddOperation(new AlterOperation_DropSchema {
                OldObject = s
            });
        }
Exemple #3
0
        public void CreateSchema(ISchemaStructure schema)
        {
            SchemaStructure s = new SchemaStructure(schema);

            AddOperation(new AlterOperation_CreateSchema {
                NewObject = s
            });
        }
Exemple #4
0
        public SchemaStructure AddSchema(ISchemaStructure schema, bool reuseGroupId)
        {
            var newsch = new SchemaStructure(schema);

            if (!reuseGroupId)
            {
                newsch.GroupId = Guid.NewGuid().ToString();
            }
            Schemata.Add(newsch);
            return(newsch);
        }