Example #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;
        }
Example #2
0
 internal Table(Schema schema, string name)
 {
     this.schema = schema;
     this.name = name;
 }
Example #3
0
 public void SetUp()
 {
     Engine engine = new Engine();
     Database database = engine.CreateDatabase("foo");
     this.schema = database.CreateSchema("bar");
 }