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