39 references to Closed
System.Data (39)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (5)
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
)) {
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 (3)
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
) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (2)
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 (13)
141
internal TdsParserState _state = TdsParserState.
Closed
; // status flag for connection
407
if (_state != TdsParserState.
Closed
) {
675
else if ((_state == TdsParserState.
Closed
) || (_state == TdsParserState.Broken)) {
1156
if (_state != TdsParserState.
Closed
) {
1160
_state = TdsParserState.
Closed
;
1252
breakConnection &= (TdsParserState.
Closed
!= _state);
1826
if (TdsParserState.Broken == State || TdsParserState.
Closed
== State ) {
1841
if (TdsParserState.Broken == State || TdsParserState.
Closed
== State)
6845
if (_state == TdsParserState.
Closed
|| _state == TdsParserState.Broken){
7703
if (TdsParserState.Broken == State || TdsParserState.
Closed
== State) {
7933
if (TdsParserState.Broken == State || TdsParserState.
Closed
== State) {
7968
if ((_state == TdsParserState.
Closed
) || (_state == TdsParserState.Broken)) {
8075
if ((TdsParserState.Broken == State) || (TdsParserState.
Closed
== State)) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (16)
576
while ((!hasLock) && (_parser.State != TdsParserState.
Closed
) && (_parser.State != TdsParserState.Broken)) {
591
while ((!hasParserLock) && (_parser.State != TdsParserState.
Closed
) && (_parser.State != TdsParserState.Broken)) {
773
if (state != TdsParserState.Broken && state != TdsParserState.
Closed
) {
1005
if (_parser.State == TdsParserState.Broken || _parser.State == TdsParserState.
Closed
) {
1937
if (_parser.State == TdsParserState.Broken || _parser.State == TdsParserState.
Closed
) {
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
))) {
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) {
3451
if ((parser != null) && (parser.State != TdsParserState.
Closed
) && (parser.State != TdsParserState.Broken)) {