public void Insert(DataSet dataSet, Section tableInfos) { foreach (DataTable table in dataSet.Tables) { Table tableInfo = tableInfos.GetTable(table.TableName); Use(table); Insert(table, tableInfo); } }
protected virtual Table GetTable(Section section, Type cls, string typeName, string defaultTypeName) { string tableName = GetTableName(section, cls, typeName, defaultTypeName); return section.GetTable(tableName); }
private static List<string> GetKeyColumns(Section section, DataTable table) { List<Column> columns = section.GetTable(table.TableName).Columns; return GetSearchKey(columns); }