18 references to Closed
Microsoft.Data.Analysis (1)
Extensions.cs (1)
26if (connection.State == ConnectionState.Closed)
System.Data.Common (4)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
338case (ConnectionState.Closed):
System\Data\Common\DbDataAdapter.cs (3)
1471connectionStates[index] = ConnectionState.Closed; // required, open may throw 1811if ((null != connection) && (ConnectionState.Closed == originalState)) 1826if (ConnectionState.Closed == originalState)
System.Data.Odbc (13)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
338case (ConnectionState.Closed):
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionClosed.cs (3)
54private DbConnectionClosedBusy() : base(ConnectionState.Closed) 119private DbConnectionClosedNeverOpened() : base(ConnectionState.Closed, false, true) 130private DbConnectionClosedPreviouslyOpened() : base(ConnectionState.Closed, true, true)
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionInternal.cs (2)
15internal static readonly StateChangeEventArgs StateChangeClosed = new StateChangeEventArgs(ConnectionState.Open, ConnectionState.Closed); 16internal static readonly StateChangeEventArgs StateChangeOpen = new StateChangeEventArgs(ConnectionState.Closed, ConnectionState.Open);
System\Data\Odbc\OdbcCommand.cs (4)
490return (ConnectionState.Closed == _cmdState); 526_cmdState = ConnectionState.Closed; 835if (ConnectionState.Closed != _cmdState) 837_cmdState = ConnectionState.Closed;
System\Data\Odbc\OdbcConnectionHelper.cs (3)
222if ((originalState != currentState) && (ConnectionState.Closed == currentState)) 228if (ConnectionState.Closed == originalState && ConnectionState.Open == currentState) 232else if (ConnectionState.Open == originalState && ConnectionState.Closed == currentState)