/// <summary> /// Advances the SqlDataReader to the next record. /// </summary> public override bool Read() { if (!_dbReader.Read()) { return(false); } _rowValues = new object[_dbReader.FieldCount]; for (var i = 0; i < _dbReader.FieldCount; i++) { if (isBinary(i)) { _rowValues[i] = getSqlBytes(i); } else { _rowValues[i] = _dbReader.GetValue(i); } } _tableRows?.Add(new EFTableRow(_rowValues) { Depth = _dbReader.Depth }); return(true); }
/// <summary> /// Advances the SqlDataReader to the next record. /// </summary> public override bool Read() { if (!_dbReader.Read()) { return(false); } _rowValues = new object[_dbReader.FieldCount]; _dbReader.GetValues(_rowValues); _tableRows?.Add(new EFTableRow { Depth = _dbReader.Depth, Values = _rowValues }); return(true); }