public bool Read() { bool isRead = _this.DataReader.Read(); if (isRead) { _chacheTable.Clear(_this.BatchSize); DataRow newRow = _chacheTable.CreateNewRow(); for (int i = 0; i < _this.DataReader.FieldCount; i++) { newRow[i] = _this.DataReader.GetValue(i); } _chacheTable.AddNewRow(newRow); } return(isRead); }
void ICustomDataReader.ClearCacheTable() { _chacheTable.Clear(); }