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

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

            AddOperation(new AlterOperation_DropSchema {
                OldObject = s
            });
        }
Ejemplo n.º 3
0
        public void CreateSchema(ISchemaStructure schema)
        {
            SchemaStructure s = new SchemaStructure(schema);

            AddOperation(new AlterOperation_CreateSchema {
                NewObject = s
            });
        }
Ejemplo n.º 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);
        }