Esempio n. 1
0
        public Schema CreateSchema(string name)
        {
            if (this.schemas.ContainsKey(name))
                throw new InvalidOperationException(string.Format("Schema '{0}' already exists in Database '{0}'", name, this.name));

            Schema schema = new Schema(this, name);

            this.schemas[name] = schema;

            return schema;
        }
Esempio n. 2
0
 internal Table(Schema schema, string name)
 {
     this.schema = schema;
     this.name = name;
 }
Esempio n. 3
0
 public void SetUp()
 {
     Engine engine = new Engine();
     Database database = engine.CreateDatabase("foo");
     this.schema = database.CreateSchema("bar");
 }