8 writes to State
System.Data (8)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
1367
_stateObj.Parser.
State
= TdsParserState.Broken; // We failed to respond to attention, we have to quit!
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (2)
1024
parser.
State
= TdsParserState.Broken; // We failed while draining data, so TDS pointer can be between tokens - cannot recover
4591
_parser.
State
= TdsParserState.Broken; // We failed to respond to attention, we have to quit!
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (5)
2010
Parser.
State
= TdsParserState.Broken;
2044
_parser.
State
= TdsParserState.Broken;
2094
_parser.
State
= TdsParserState.Broken;
2382
_parser.
State
= TdsParserState.Broken; // We failed subsequent read, we have to quit!
2550
_parser.
State
= TdsParserState.Broken;
77 references to State
System.Data (77)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
2437
if (_parser.
State
== TdsParserState.OpenNotLoggedIn || _parser.
State
== TdsParserState.OpenLoggedIn) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (10)
216
if ((parser == null) || (parser.
State
== TdsParserState.Closed) || (parser.
State
== TdsParserState.Broken)) {
3781
if ((tdsParser == null) || (tdsParser.
State
== TdsParserState.Broken) || (tdsParser.
State
== TdsParserState.Closed)) {
4821
if ((parser == null) || (parser.
State
== TdsParserState.Closed)) {
4824
else if (parser.
State
!= TdsParserState.OpenLoggedIn) {
4936
if ((parser == null) || (parser.
State
== TdsParserState.Broken) || (parser.
State
== TdsParserState.Closed)) {
5173
if ((parser == null) || (parser.
State
== TdsParserState.Closed) || (parser.
State
== TdsParserState.Broken)) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (10)
901
if (parser.
State
== TdsParserState.OpenLoggedIn) {
1084
Debug.Assert(parser == null || parser.
State
!= TdsParserState.OpenNotLoggedIn, "Reader on a connection that is not logged in");
1085
if ((parser != null) && (parser.
State
== TdsParserState.OpenLoggedIn)) {
1120
if (_parser.
State
== TdsParserState.Broken || _parser.
State
== TdsParserState.Closed) {
2807
if (_parser.
State
== TdsParserState.Broken || _parser.
State
== TdsParserState.Closed) {
2882
if (_parser.
State
== TdsParserState.Broken || _parser.
State
== TdsParserState.Closed) {
3685
if (parser.
State
== TdsParserState.OpenLoggedIn) {
fx\src\data\System\Data\SqlClient\SqlInternalConnection.cs (1)
482
if (parser == null || parser.
State
!= TdsParserState.OpenLoggedIn)
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (3)
699
if ((parser == null) || (parser.
State
== TdsParserState.Broken) || (parser.
State
== TdsParserState.Closed)) {
1603
|| TdsParserState.Closed != _parser.
State
fx\src\data\System\Data\SqlClient\TdsParser.cs (16)
1826
if (TdsParserState.Broken ==
State
|| TdsParserState.Closed ==
State
) {
1841
if (TdsParserState.Broken ==
State
|| TdsParserState.Closed ==
State
)
7703
if (TdsParserState.Broken ==
State
|| TdsParserState.Closed ==
State
) {
7933
if (TdsParserState.Broken ==
State
|| TdsParserState.Closed ==
State
) {
8075
if ((TdsParserState.Broken ==
State
) || (TdsParserState.Closed ==
State
)) {
9133
if (!(
State
== TdsParserState.OpenNotLoggedIn ||
State
== TdsParserState.OpenLoggedIn)) {
9287
if (!(
State
== TdsParserState.OpenNotLoggedIn ||
State
== TdsParserState.OpenLoggedIn)) {
9500
if (!(
State
== TdsParserState.OpenNotLoggedIn ||
State
== TdsParserState.OpenLoggedIn)) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (35)
576
while ((!hasLock) && (_parser.
State
!= TdsParserState.Closed) && (_parser.
State
!= TdsParserState.Broken)) {
591
while ((!hasParserLock) && (_parser.
State
!= TdsParserState.Closed) && (_parser.
State
!= TdsParserState.Broken)) {
772
TdsParserState state = Parser.
State
;
1005
if (_parser.
State
== TdsParserState.Broken || _parser.
State
== TdsParserState.Closed) {
1937
if (_parser.
State
== TdsParserState.Broken || _parser.
State
== TdsParserState.Closed) {
2050
else if (_parser.
State
== TdsParserState.OpenLoggedIn) {
2123
if (_parser.
State
== TdsParserState.Broken || _parser.
State
== TdsParserState.Closed) {
2226
if ((_parser == null) || ((_parser.
State
== TdsParserState.Broken) || (_parser.
State
== TdsParserState.Closed))) {
2283
if ((_parser == null) || ((_parser.
State
== TdsParserState.Broken) || (_parser.
State
== TdsParserState.Closed))) {
2323
if (stateObj.Parser.
State
== TdsParserState.OpenLoggedIn) {
2370
else if ((_parser.
State
== TdsParserState.OpenNotLoggedIn) && (_parser.Connection.ConnectionOptions.MultiSubnetFailover || _parser.Connection.ConnectionOptions.TransparentNetworkIPResolution))
2398
if ((_parser.
State
== TdsParserState.Closed) || (_parser.
State
== TdsParserState.Broken)) {
2530
else if ((_parser.
State
== TdsParserState.Closed) || (_parser.
State
== TdsParserState.Broken)) {
2545
Debug.Assert(_parser.
State
== TdsParserState.Broken || _parser.
State
== TdsParserState.Closed || _parser.Connection.IsConnectionDoomed, "Failed to capture exception while the connection was still healthy");
2687
if ((_parser.
State
== TdsParserState.Closed) || (_parser.
State
== TdsParserState.Broken)) {
2811
if ((_parser.
State
== TdsParserState.Closed) || (_parser.
State
== TdsParserState.Broken)) {
3005
if (_parser.
State
== TdsParserState.Closed || _parser.
State
== TdsParserState.Broken) {
3034
if (_parser.
State
== TdsParserState.Closed || _parser.
State
== TdsParserState.Broken) {
3097
if (_parser.
State
== TdsParserState.OpenNotLoggedIn &&
3451
if ((parser != null) && (parser.
State
!= TdsParserState.Closed) && (parser.
State
!= TdsParserState.Broken)) {