2 writes to _currentDataTable
System.Data.Common (2)
System\Data\DataTableReader.cs (2)
105
_currentDataTable
= _tables[_tableCounter];
148
_currentDataTable
= _tables[++_tableCounter];
29 references to _currentDataTable
System.Data.Common (29)
System\Data\DataTableReader.cs (29)
98
internal DataTable CurrentDataTable =>
_currentDataTable
;
106
_hasRows = (
_currentDataTable
.Rows.Count > 0);
135
return _schemaTable ??= GetSchemaTableFromDataTable(
_currentDataTable
);
150
_listener?.UpdataTable(
_currentDataTable
); // it will unsubscribe from preveous tables events and subscribe to new table's events
161
_hasRows = (
_currentDataTable
.Rows.Count > 0);
181
if (_rowCounter >=
_currentDataTable
.Rows.Count - 1)
190
_currentDataRow =
_currentDataTable
.Rows[_rowCounter];
195
if (_rowCounter ==
_currentDataTable
.Rows.Count)
202
_currentDataRow =
_currentDataTable
.Rows[_rowCounter];
252
throw ExceptionBuilder.InvalidDataTableReader(
_currentDataTable
.TableName);
276
throw ExceptionBuilder.InvalidDataTableReader(
_currentDataTable
.TableName);
288
return
_currentDataTable
.Columns.Count;
517
return (
_currentDataTable
.Columns[ordinal].DataType);
612
return (
_currentDataTable
.Columns[ordinal].ColumnName);
626
DataColumn? dc =
_currentDataTable
.Columns[name];
634
throw ExceptionBuilder.ColumnNotInTheTable(name,
_currentDataTable
.TableName);
869
throw ExceptionBuilder.InvalidDataTableReader(
_currentDataTable
.TableName);
874
throw ExceptionBuilder.DataTableReaderSchemaIsInvalid(
_currentDataTable
.TableName); // may be we can use better error message!
883
throw ExceptionBuilder.EmptyDataTableReader(
_currentDataTable
.TableName);
887
if ((_currentDataRow == null) || (
_currentDataTable
== null))
891
throw ExceptionBuilder.InvalidDataTableReader(
_currentDataTable
!.TableName);
900
if (0 > _rowCounter ||
_currentDataTable
.Rows.Count <= _rowCounter)
903
throw ExceptionBuilder.InvalidDataTableReader(
_currentDataTable
.TableName);
911
throw ExceptionBuilder.InvalidDataTableReader(
_currentDataTable
.TableName);
914
if (0 > rowPosition ||
_currentDataTable
.Rows.Count <= rowPosition)
917
throw ExceptionBuilder.InvalidDataTableReader(
_currentDataTable
.TableName);
952
if (_currentDataRow ==
_currentDataTable
.Rows[_rowCounter + 1])
968
if (_currentDataRow ==
_currentDataTable
.Rows[_rowCounter - 1])
981
_currentDataRow =
_currentDataTable
.Rows[_rowCounter];