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