Esempio n. 1
0
 private int FillLoadDataRow(SchemeMap mapping)
 {
     int num = 0;
     DataReaderContainer dataReader = mapping.DataReader;
     while (dataReader.Read())
     {
         mapping.LoadDataRow();
         num++;
     }
     return num;
 }
Esempio n. 2
0
 private int FillLoadDataRowChunk(SchemeMap mapping, int startRecord, int maxRecords)
 {
     DataReaderContainer dataReader = mapping.DataReader;
     while (0 < startRecord)
     {
         if (!dataReader.Read())
         {
             return 0;
         }
         startRecord--;
     }
     int i = 0;
     if (0 < maxRecords)
     {
         while (i < maxRecords)
         {
             if (!dataReader.Read())
             {
                 break;
             }
             mapping.LoadDataRow();
             i++;
         }
     }
     else
     {
         i = this.FillLoadDataRow(mapping);
     }
     return i;
 }