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