Base:
property
State
System.Data.Common.DbConnection.State
16 references to State
System.Data.Entity (15)
System\Data\EntityClient\EntityAdapter.cs (1)
117
if (ConnectionState.Open != _connection.
State
)
System\Data\EntityClient\EntityCommand.cs (3)
782
if ((this._connection.
State
== ConnectionState.Closed) || (this._connection.
State
== ConnectionState.Broken))
785
this._connection.
State
== ConnectionState.Closed ?
System\Data\EntityClient\EntityConnection.cs (7)
332
if (this.
State
!= ConnectionState.Open)
471
if ((null != _currentTransaction) && ((null == _currentTransaction.StoreTransaction.Connection) || (this.
State
== ConnectionState.Closed)))
512
if (this.
State
!= ConnectionState.Closed)
702
if (this.
State
!= ConnectionState.Open)
744
if (this.
State
!= ConnectionState.Open)
804
bool raiseStateChangeEvent = EntityCloseHelper(false, this.
State
);
1180
ConnectionState previousState = this.
State
; // the public connection state before cleanup
System\Data\Objects\ObjectContext.cs (4)
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);
1434
Debug.Assert(ConnectionState.Open == _connection.
State
, "Connection must be open.");
System.Data.Entity.Design (1)
System\Data\Entity\Design\SSDLGenerator\FunctionDetailsReader.cs (1)
33
Debug.Assert(connection.
State
== ConnectionState.Open, "the connection is not Open");