5 writes to _nextColumnHeaderToRead
System.Data (5)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (5)
3164
_sharedState.
_nextColumnHeaderToRead
= 0;
3239
_sharedState.
_nextColumnHeaderToRead
= 0;
3501
_sharedState.
_nextColumnHeaderToRead
++;
3511
_sharedState.
_nextColumnHeaderToRead
++; // We read this one
4762
_sharedState.
_nextColumnHeaderToRead
= _snapshot._nextColumnHeaderToRead;
34 references to _nextColumnHeaderToRead
System.Data (34)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (29)
718
if (0 == _sharedState.
_nextColumnHeaderToRead
) {
732
if (!_stateObj.Parser.TrySkipRow(_metaData, _sharedState.
_nextColumnHeaderToRead
, _stateObj)) {
1566
if (_sharedState.
_nextColumnHeaderToRead
<= i) {
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)) {
2108
if (_sharedState.
_nextColumnHeaderToRead
<= i) {
2918
if ((IsCommandBehavior(CommandBehavior.SequentialAccess)) && ((_sharedState.
_nextColumnHeaderToRead
> i + 1) || (_lastColumnWithDataChunkRead > i))) {
3329
Debug.Assert(_sharedState.
_nextColumnHeaderToRead
<= _metaData.Length, "_sharedState._nextColumnHeaderToRead too large");
3444
if (i < _sharedState.
_nextColumnHeaderToRead
) {
3477
else if (_sharedState._nextColumnDataToRead < _sharedState.
_nextColumnHeaderToRead
) {
3482
Debug.Assert(_sharedState._nextColumnDataToRead == _sharedState.
_nextColumnHeaderToRead
);
3491
_SqlMetaData columnMetaData = _metaData[_sharedState.
_nextColumnHeaderToRead
];
3493
if ((isSequentialAccess) && (_sharedState.
_nextColumnHeaderToRead
< i)) {
3496
if (!_parser.TrySkipValue(columnMetaData, _sharedState.
_nextColumnHeaderToRead
, _stateObj)) {
3500
_sharedState._nextColumnDataToRead = _sharedState.
_nextColumnHeaderToRead
;
3506
if (!_parser.TryProcessColumnHeader(columnMetaData, _stateObj, _sharedState.
_nextColumnHeaderToRead
, out isNull, out dataLength)) {
3510
_sharedState._nextColumnDataToRead = _sharedState.
_nextColumnHeaderToRead
;
3548
} while (_sharedState.
_nextColumnHeaderToRead
<= i);
3568
if ((targetColumn >= _sharedState._nextColumnDataToRead) && (_sharedState._nextColumnDataToRead < _sharedState.
_nextColumnHeaderToRead
)) {
3582
int currentColumn = _sharedState.
_nextColumnHeaderToRead
;
3630
Debug.Assert(_sharedState.
_nextColumnHeaderToRead
<= _metaData.Length, "_sharedState._nextColumnHeaderToRead too large");
3633
if (_sharedState._nextColumnDataToRead < _sharedState.
_nextColumnHeaderToRead
) {
3634
if ((_sharedState.
_nextColumnHeaderToRead
> 0) && (_metaData[_sharedState.
_nextColumnHeaderToRead
- 1].metaType.IsPlp)) {
3893
((_sharedState.
_nextColumnHeaderToRead
> columnIndex + 1) || (_lastColumnWithDataChunkRead > columnIndex))) { // Read past column
3894
throw ADP.NonSequentialColumnAccess(columnIndex, Math.Max(_sharedState.
_nextColumnHeaderToRead
- 1, _lastColumnWithDataChunkRead));
4019
if ((_sharedState.
_nextColumnHeaderToRead
<= _lastColumnWithDataChunkRead) || (_sharedState._nextColumnDataToRead < _lastColumnWithDataChunkRead)) {
4337
if ((_sharedState.
_nextColumnHeaderToRead
> i) && (!cancellationToken.IsCancellationRequested) && (_currentTask == null)) {
4690
_nextColumnHeaderToRead = _sharedState.
_nextColumnHeaderToRead
,
fx\src\data\System\Data\SqlClient\TdsParser.cs (5)
3789
if (0 == sharedState.
_nextColumnHeaderToRead
) {
3797
if (sharedState._nextColumnDataToRead < sharedState.
_nextColumnHeaderToRead
) {
3798
if ((sharedState.
_nextColumnHeaderToRead
> 0) && (metadata[sharedState.
_nextColumnHeaderToRead
- 1].metaType.IsPlp)) {
3818
if (!stateObj.Parser.TrySkipRow(metadata, sharedState.
_nextColumnHeaderToRead
, stateObj)) {