예제 #1
0
 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> ());
 }
예제 #2
0
 public GetTablesResponseMessage(Guid requestID, Table[] tables, Exception exception)
 {
     if (tables == null)
         throw new ArgumentNullException ("tables");
     this.requestID = requestID;
     this.tables = tables;
     this.exception = exception;
 }
예제 #3
0
 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;
     //			}
 }
예제 #4
0
 public Column GetColumnByID(Table table, Guid id)
 {
     return perTableColumnsByID [table] [id];
 }
예제 #5
0
 public void AddColumn(Table table, Column column)
 {
     perTableColumnsByID [table].Add (column.ID, column);
     perTableColumnsByName [table].Add (column.Name, column);
 }