public void AddTable(Table t) { tablesByID.Add (t.ID, t); tablesByName.Add (t.Name, t); perTableColumnsByID.Add (t, new SortedDictionary<Guid, Column> ()); perTableColumnsByName.Add (t, new SortedDictionary<string, Column> ()); }
public GetTablesResponseMessage(Guid requestID, Table[] tables, Exception exception) { if (tables == null) throw new ArgumentNullException ("tables"); this.requestID = requestID; this.tables = tables; this.exception = exception; }
public Column GetColumnByName(Table table, string name) { // try { return perTableColumnsByName [table] [name]; // } catch { // (table.Name); // (name); // // (); // foreach (var ct in perTableColumnsByName[table]) { // (ct.Value.Name); // } // throw; // } }
public Column GetColumnByID(Table table, Guid id) { return perTableColumnsByID [table] [id]; }
public void AddColumn(Table table, Column column) { perTableColumnsByID [table].Add (column.ID, column); perTableColumnsByName [table].Add (column.Name, column); }