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