7 writes to _nextColumnDataToRead
System.Data (7)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (7)
3165
_sharedState.
_nextColumnDataToRead
= 0;
3386
_sharedState.
_nextColumnDataToRead
++;
3500
_sharedState.
_nextColumnDataToRead
= _sharedState._nextColumnHeaderToRead;
3510
_sharedState.
_nextColumnDataToRead
= _sharedState._nextColumnHeaderToRead;
3521
_sharedState.
_nextColumnDataToRead
++;
3534
_sharedState.
_nextColumnDataToRead
++;
4761
_sharedState.
_nextColumnDataToRead
= _snapshot._nextColumnDataToRead;
28 references to _nextColumnDataToRead
System.Data (28)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (27)
1789
Debug.Assert(_sharedState._nextColumnHeaderToRead == i + 1 && _sharedState.
_nextColumnDataToRead
== i, "Non sequential access");
2012
if ((_sharedState.
_nextColumnDataToRead
== (i+1)) && (_sharedState._nextColumnHeaderToRead == (i+1)) && (_columnDataChars != null) && (IsCommandBehavior(CommandBehavior.SequentialAccess)) && (dataIndex < _columnDataCharsRead)) {
3330
Debug.Assert(_sharedState.
_nextColumnDataToRead
<= _metaData.Length, "_sharedState._nextColumnDataToRead too large");
3376
if (!_data[_sharedState.
_nextColumnDataToRead
].IsNull) {
3377
_SqlMetaData columnMetaData = _metaData[_sharedState.
_nextColumnDataToRead
];
3379
if (!_parser.TryReadSqlValue(_data[_sharedState.
_nextColumnDataToRead
], columnMetaData, (int)_sharedState._columnDataBytesRemaining, _stateObj,
3446
if ((i == _sharedState.
_nextColumnDataToRead
) && (!readHeaderOnly)) {
3452
Debug.Assert(i == _sharedState.
_nextColumnDataToRead
|| // Either we haven't read the column yet
3453
((i + 1 < _sharedState.
_nextColumnDataToRead
) && (IsCommandBehavior(CommandBehavior.SequentialAccess))) || // Or we're in sequential mode and we've read way past the column (i.e. it was not the last column we read)
3468
if (0 < _sharedState.
_nextColumnDataToRead
) {
3469
_data[_sharedState.
_nextColumnDataToRead
- 1].Clear();
3477
else if (_sharedState.
_nextColumnDataToRead
< _sharedState._nextColumnHeaderToRead) {
3482
Debug.Assert(_sharedState.
_nextColumnDataToRead
== _sharedState._nextColumnHeaderToRead);
3515
TdsParser.GetNullSqlValue(_data[_sharedState.
_nextColumnDataToRead
],
3525
if ((i > _sharedState.
_nextColumnDataToRead
) || (!readHeaderOnly)) {
3529
if (!_parser.TryReadSqlValue(_data[_sharedState.
_nextColumnDataToRead
], columnMetaData, (int)dataLength, _stateObj,
3557
if ((_lastColumnWithDataChunkRead == _sharedState.
_nextColumnDataToRead
) && (_metaData[_lastColumnWithDataChunkRead].metaType.IsPlp)) {
3568
if ((targetColumn >= _sharedState.
_nextColumnDataToRead
) && (_sharedState.
_nextColumnDataToRead
< _sharedState._nextColumnHeaderToRead)) {
3633
if (_sharedState.
_nextColumnDataToRead
< _sharedState._nextColumnHeaderToRead) {
3913
((_sharedState.
_nextColumnDataToRead
> columnIndex) || (_lastColumnWithDataChunkRead > columnIndex) || // Read past column
3916
throw ADP.NonSequentialColumnAccess(columnIndex, Math.Max(_sharedState.
_nextColumnDataToRead
, _lastColumnWithDataChunkRead + 1));
3928
Debug.Assert((!enforceSequentialAccess) || (!IsCommandBehavior(CommandBehavior.SequentialAccess)) || ((_sharedState.
_nextColumnDataToRead
<= columnIndex) && (_lastColumnWithDataChunkRead <= columnIndex)), "Already read past column");
4018
Debug.Assert(_sharedState.
_nextColumnDataToRead
<= _lastColumnWithDataChunkRead, "Non sequential access");
4019
if ((_sharedState._nextColumnHeaderToRead <= _lastColumnWithDataChunkRead) || (_sharedState.
_nextColumnDataToRead
< _lastColumnWithDataChunkRead)) {
4432
if ((!IsCommandBehavior(CommandBehavior.SequentialAccess)) && (_sharedState.
_nextColumnDataToRead
> i) && (!cancellationToken.IsCancellationRequested) && (_currentTask == null)) {
4689
_nextColumnDataToRead = _sharedState.
_nextColumnDataToRead
,
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
3797
if (sharedState.
_nextColumnDataToRead
< sharedState._nextColumnHeaderToRead) {