public static void RemoveTableMapping(TableModel table) { lock (globalColumnsCountLock) { string tableNameKey = table.TableName; if (table.Columns.HasElements()) { foreach (ColumnObjectModel column in table.Columns) { Integrity.RemoveColumnMapping(column, table.TableName); } } if (!Integrity.tableColumns.ContainsKey(tableNameKey)) { Integrity.tableColumns.Remove(tableNameKey); } if (!Integrity.tableMasterList.Any(t => t == tableNameKey)) { // NOTE: We check case but dont use it Integrity.tableMasterList.Remove(table.TableName); } } }
public static void MapTable(TableModel table) { string tableNameKey = table.TableName; if (!Integrity.tableMasterList.Any(t => t == tableNameKey)) { // NOTE: We check case but dont use it Integrity.tableMasterList.Add(table.TableName); Integrity.tableSchemaNames.Add(table.TableName, table.SchemaName); } if (!Integrity.tableColumns.ContainsKey(tableNameKey)) { Integrity.tableColumns.Add(tableNameKey, new List <string>()); } if (!table.Columns.HasElements()) { // Nothing to do futher return; } foreach (ColumnObjectModel column in table.Columns) { Integrity.MapColumn(column, table.TableName); } }
public List <DataItemModel> GetSystemColumns() { return(Integrity.GetSystemColumns()); }