Base:
property
State
System.Data.Common.DbConnection.State
27 references to State
System.Data (19)
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (1)
71if ( ConnectionState.Open != connection.State ) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (5)
1170if(_ownConnection && _connection.State != ConnectionState.Open) { 2084if (ConnectionState.Open != _connection.State) { 2085exception = ADP.OpenConnectionRequired("CheckAndRaiseNotification", _connection.State); 2112if (_connection.State != ConnectionState.Open) { 2113throw ADP.OpenConnectionRequired(SQL.WriteToServer, _connection.State);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (4)
1383if (_activeConnection.State != ConnectionState.Open) { 1397if ((_activeConnection.State != ConnectionState.Open) || (!cachedAsyncState.IsActiveConnectionValid(_activeConnection))) { 4828else if (_activeConnection.State == ConnectionState.Closed) { 4831else if (_activeConnection.State == ConnectionState.Broken) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (7)
402if (ConnectionState.Open == State) { 416if (ConnectionState.Open == State) { 1096if (State != ConnectionState.Open) {// if we cancelled before the connection was opened 1740if (breakConnection && (ConnectionState.Open == State)) { 1780Debug.Assert(ConnectionState.Open == State, "CompleteOpen not open"); 2170if (ConnectionState.Open == State) { 2192if (ConnectionState.Open == State) {
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (2)
872if (ConnectionState.Closed != _con.State && ConnectionState.Broken != _con.State) {
System.Data.Entity (3)
System\Data\SqlClient\SqlProviderServices.cs (2)
1062bool openingConnection = sqlConnection.State == ConnectionState.Closed; 1073if (openingConnection && sqlConnection.State == ConnectionState.Open)
System\Data\SqlClient\SqlVersion.cs (1)
53System.Diagnostics.Debug.Assert(connection.State == ConnectionState.Open, "Expected an open connection");
System.Web (3)
State\sqlstateclientmanager.cs (3)
359if (conn != null && (conn.Connection.State & ConnectionState.Open) == 0) { 879if (cmd.Connection.State != ConnectionState.Open) { 918if (cmd.Connection.State != ConnectionState.Open) {
System.Workflow.Runtime (2)
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)