61 references to Closed
System.Data (22)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
859case (ConnectionState.Closed):
fx\src\data\System\Data\Common\DbDataAdapter.cs (3)
1247connectionStates[index] = ConnectionState.Closed; // required, open may throw 1530if ((null != connection) && (ConnectionState.Closed == originalState)) { 1543if (ConnectionState.Closed == originalState) {
fx\src\data\System\Data\Common\DbProviderFactories.cs (1)
233case ConnectionState.Closed:
fx\src\data\System\Data\Odbc\OdbcCommand.cs (4)
454return (ConnectionState.Closed == cmdState); 485this.cmdState = ConnectionState.Closed; 760if(ConnectionState.Closed != cmdState) { 761cmdState = ConnectionState.Closed;
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (1)
313internal const int InternalStateClosed = (int) (ConnectionState.Closed);
fx\src\data\System\Data\ProviderBase\DbConnectionClosed.cs (3)
84private DbConnectionClosedBusy() : base(ConnectionState.Closed) { 142private DbConnectionClosedNeverOpened() : base(ConnectionState.Closed, false, true) { 151private DbConnectionClosedPreviouslyOpened() : base(ConnectionState.Closed, true, true) {
fx\src\Data\System\Data\ProviderBase\DbConnectionHelper.cs (3)
332if ((originalState != currentState) && (ConnectionState.Closed == currentState)) { 339if (ConnectionState.Closed == originalState && ConnectionState.Open == currentState) { 342else if (ConnectionState.Open == originalState && ConnectionState.Closed == currentState) {
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (2)
32internal static readonly StateChangeEventArgs StateChangeClosed = new StateChangeEventArgs(ConnectionState.Open, ConnectionState.Closed); 33internal static readonly StateChangeEventArgs StateChangeOpen = new StateChangeEventArgs(ConnectionState.Closed, ConnectionState.Open);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
4822throw ADP.OpenConnectionRequired(method, ConnectionState.Closed); 4828else if (_activeConnection.State == ConnectionState.Closed) { 4829throw ADP.OpenConnectionRequired(method, ConnectionState.Closed);
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (1)
872if (ConnectionState.Closed != _con.State && ConnectionState.Broken != _con.State) {
System.Data.Entity (15)
System\Data\EntityClient\EntityCommand.cs (2)
782if ((this._connection.State == ConnectionState.Closed) || (this._connection.State == ConnectionState.Broken)) 785this._connection.State == ConnectionState.Closed ?
System\Data\EntityClient\EntityConnection.cs (8)
41internal static readonly StateChangeEventArgs StateChangeClosed = new StateChangeEventArgs(ConnectionState.Open, ConnectionState.Closed); 42internal static readonly StateChangeEventArgs StateChangeOpen = new StateChangeEventArgs(ConnectionState.Closed, ConnectionState.Open); 54private ConnectionState _entityClientConnectionState = ConnectionState.Closed; 118if (connection.State != ConnectionState.Closed) 471if ((null != _currentTransaction) && ((null == _currentTransaction.StoreTransaction.Connection) || (this.State == ConnectionState.Closed))) 512if (this.State != ConnectionState.Closed) 1195if (this._storeConnection != null && (this._storeConnection.State != ConnectionState.Closed)) 1225this._entityClientConnectionState = ConnectionState.Closed;
System\Data\Objects\ObjectContext.cs (4)
1407if (ConnectionState.Closed == Connection.State) 1419if ((_connection.State == ConnectionState.Closed) || (_connection.State == ConnectionState.Broken)) 1422_connection.State == ConnectionState.Closed ? System.Data.Entity.Strings.EntityClient_ConnectionStateClosed : System.Data.Entity.Strings.EntityClient_ConnectionStateBroken); 1548if (e.CurrentState == ConnectionState.Closed)
System\Data\SqlClient\SqlProviderServices.cs (1)
1062bool openingConnection = sqlConnection.State == ConnectionState.Closed;
System.Data.Linq (7)
DataContext.cs (1)
503if (this.provider.Connection.State == ConnectionState.Closed) {
SqlClient\SqlConnectionManager.cs (2)
42if (this.connection.State == ConnectionState.Closed) { 136if (this.connection != null && this.connection.State != ConnectionState.Closed) {
SqlClient\SqlProvider.cs (4)
541if (this.conManager.Connection.State == ConnectionState.Closed) { 710System.Diagnostics.Debug.Assert(this.conManager.Connection.State == ConnectionState.Closed); 730if (conManager.Connection.State == ConnectionState.Closed && 768if (conManager.Connection.State == ConnectionState.Closed &&
System.Workflow.Runtime (17)
Hosting\LocalTransaction.cs (2)
104if ((null != connection) && (ConnectionState.Closed != connection.State)) 138if ((null != connection) && (ConnectionState.Closed != connection.State))
Hosting\SqlWorkflowPersistenceService.cs (1)
548if ((null != connection) && (ConnectionState.Closed != connection.State))
Tracking\SqlTrackingQuery.cs (2)
74if (null != cmd && null != cmd.Connection && ConnectionState.Closed != cmd.Connection.State) 115if (null != cmd && null != cmd.Connection && ConnectionState.Closed != cmd.Connection.State)
Tracking\SqlTrackingService.cs (12)
331if ((null != cmd) && (null != cmd.Connection) && (ConnectionState.Closed != cmd.Connection.State)) 441if ((null != cmd) && (null != cmd.Connection) && (ConnectionState.Closed != cmd.Connection.State)) 589if ((null != command) && (null != command.Connection) && (ConnectionState.Closed != command.Connection.State)) 603if (ConnectionState.Closed != command.Connection.State) 671if ((null != cmd) && (null != cmd.Connection) && (ConnectionState.Closed != cmd.Connection.State)) 836if ((null != command) && (null != command.Connection) && (ConnectionState.Closed != command.Connection.State)) 855if ((null != command) && (null != command.Connection) && (ConnectionState.Closed != command.Connection.State)) 1193if ((null != conn) && (ConnectionState.Closed != conn.State)) 1369if ((null != conn) && (ConnectionState.Closed != conn.State)) 1517if ((null != conn) && (ConnectionState.Closed != conn.State)) 1684if ((null != conn) && (ConnectionState.Closed != conn.State)) 2039if ((null != command) && (null != command.Connection) && (ConnectionState.Closed != command.Connection.State))