5 writes to _snapshot
System.Data (5)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (5)
3545
_snapshot
= null;
4302
_snapshot
= null;
4682
_snapshot
= new Snapshot {
4749
_snapshot
= null;
4783
_snapshot
= null;
30 references to _snapshot
System.Data (30)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (30)
411
Debug.Assert(null ==
_snapshot
, "Should not change during execution of asynchronous command");
850
if (
_snapshot
!= null) {
988
if (
_snapshot
!= null) {
1104
if (
_snapshot
!= null) {
1140
if (
_snapshot
!= null && object.ReferenceEquals(
_snapshot
._metadata, _metaData)) {
3542
if (
_snapshot
!= null) {
3701
else if (
_snapshot
!= null && object.ReferenceEquals(
_snapshot
._altMetaDataSetCollection, _altMetaDataSetCollection)) {
4681
if (
_snapshot
== null) {
4708
Debug.Assert(
_snapshot
== null, "Can prepare async invocation without snapshot if there is currently a snapshot");
4726
Debug.Assert(
_snapshot
== null && !_stateObj._asyncReadWithoutSnapshot, "Snapshot not null or async without snapshot still enabled after cleaning async state");
4753
Debug.Assert(((
_snapshot
!= null) || (_stateObj._asyncReadWithoutSnapshot)), "Can not prepare for an async continuation if no async if setup");
4754
if (
_snapshot
!= null) {
4755
_sharedState._dataReady =
_snapshot
._dataReady;
4756
_haltRead =
_snapshot
._haltRead;
4757
_metaDataConsumed =
_snapshot
._metaDataConsumed;
4758
_browseModeInfoConsumed =
_snapshot
._browseModeInfoConsumed;
4759
_hasRows =
_snapshot
._hasRows;
4760
_altRowStatus =
_snapshot
._altRowStatus;
4761
_sharedState._nextColumnDataToRead =
_snapshot
._nextColumnDataToRead;
4762
_sharedState._nextColumnHeaderToRead =
_snapshot
._nextColumnHeaderToRead;
4763
_columnDataBytesRead =
_snapshot
._columnDataBytesRead;
4764
_sharedState._columnDataBytesRemaining =
_snapshot
._columnDataBytesRemaining;
4766
_metaData =
_snapshot
._metadata;
4767
_altMetaDataSetCollection =
_snapshot
._altMetaDataSetCollection;
4768
_tableNames =
_snapshot
._tableNames;
4770
_currentStream =
_snapshot
._currentStream;
4771
_currentTextReader =
_snapshot
._currentTextReader;
4780
Debug.Assert(
_snapshot
!= null, "Should currently have a snapshot");