public Table(string name, Schema schema, IEnumerable<Column> columns) { this.Name = Contract.Required(name, "Table name"); this.Schema = Contract.Required(schema, "Table schema"); this.columns = new List<Column>(Contract.RequiredNonEmpty(columns, "Columns")); Schema.AddTable(this); }
protected internal Schema AddSchema(Schema schema) { schemas.Add(schema); return schema; }