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