89 references to Open
System.Data (46)
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (1)
71
if ( ConnectionState.
Open
!= connection.State ) {
fx\src\data\System\Data\Common\AdapterUtil.cs (3)
864
case (ConnectionState.
Open
):
866
case (ConnectionState.
Open
|ConnectionState.Executing):
868
case (ConnectionState.
Open
|ConnectionState.Fetching):
fx\src\data\System\Data\Common\DBCommandBuilder.cs (1)
520
if (0 == (ConnectionState.
Open
& connection.State)) {
fx\src\data\System\Data\Common\DbDataAdapter.cs (5)
349
ConnectionState originalState = ConnectionState.
Open
;
519
ConnectionState originalState = ConnectionState.
Open
;
1017
if (ConnectionState.
Open
== state) {
1029
if (ConnectionState.
Open
== state) {
1106
if (ConnectionState.
Open
== state) {
fx\src\data\System\Data\Common\DbProviderFactories.cs (3)
230
if (ConnectionState.
Open
!= _initState) {
240
_initState = ConnectionState.
Open
;
244
case ConnectionState.
Open
:
fx\src\data\System\Data\Odbc\OdbcCommand.cs (1)
861
if (ConnectionState.
Open
!= state) {
fx\src\data\System\Data\Odbc\OdbcCommandBuilder.cs (1)
133
if (ConnectionState.
Open
!= state) {
fx\src\data\System\Data\Odbc\OdbcConnection.cs (3)
286
if (ConnectionState.
Open
!= state) {
556
if (ConnectionState.
Open
!= state) {
560
if (ConnectionState.
Open
!= state) {
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (3)
311
internal const int InternalStateExecuting = (int) (ConnectionState.
Open
| ConnectionState.Executing);
312
internal const int InternalStateFetching = (int) (ConnectionState.
Open
| ConnectionState.Fetching);
324
internal const int InternalStateOpen = (int) (ConnectionState.
Open
);
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (1)
123
if (ConnectionState.
Open
!= state) {
fx\src\data\System\Data\OleDb\OleDbConnection.cs (1)
339
if (ConnectionState.
Open
!= state) {
fx\src\data\System\Data\ProviderBase\DbConnectionClosed.cs (1)
92
private DbConnectionOpenBusy() : base(ConnectionState.
Open
) {
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
250
if ((oldConnection != null) && (oldConnection.State == ConnectionState.
Open
)) {
fx\src\Data\System\Data\ProviderBase\DbConnectionHelper.cs (5)
156
if (ConnectionState.
Open
== innerConnection.State) {
329
ConnectionState originalState = _innerConnection.State & ConnectionState.
Open
;
330
ConnectionState currentState = to.State & ConnectionState.
Open
;
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 (3)
32
internal static readonly StateChangeEventArgs StateChangeClosed = new StateChangeEventArgs(ConnectionState.
Open
, ConnectionState.Closed);
33
internal static readonly StateChangeEventArgs StateChangeOpen = new StateChangeEventArgs(ConnectionState.Closed, ConnectionState.
Open
);
64
protected DbConnectionInternal() : this(ConnectionState.
Open
, true, false) { // V1.1.3300
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (3)
1170
if(_ownConnection && _connection.State != ConnectionState.
Open
) {
2084
if (ConnectionState.
Open
!= _connection.State) {
2112
if (_connection.State != ConnectionState.
Open
) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
1383
if (_activeConnection.State != ConnectionState.
Open
) {
1397
if ((_activeConnection.State != ConnectionState.
Open
) || (!cachedAsyncState.IsActiveConnectionValid(_activeConnection))) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (8)
402
if (ConnectionState.
Open
== State) {
416
if (ConnectionState.
Open
== State) {
734
return ConnectionState.
Open
;
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) {
System.Data.Entity (15)
System\Data\EntityClient\EntityAdapter.cs (1)
117
if (ConnectionState.
Open
!= _connection.State)
System\Data\EntityClient\EntityConnection.cs (11)
41
internal static readonly StateChangeEventArgs StateChangeClosed = new StateChangeEventArgs(ConnectionState.
Open
, ConnectionState.Closed);
42
internal static readonly StateChangeEventArgs StateChangeOpen = new StateChangeEventArgs(ConnectionState.Closed, ConnectionState.
Open
);
276
if (this._entityClientConnectionState == ConnectionState.
Open
)
279
if (this.StoreConnection.State != ConnectionState.
Open
)
332
if (this.State != ConnectionState.
Open
)
518
OpenStoreConnectionIf(this._storeConnection.State != ConnectionState.
Open
,
527
if (this._storeConnection == null || this._storeConnection.State != ConnectionState.
Open
)
611
this._entityClientConnectionState = ConnectionState.
Open
;
702
if (this.State != ConnectionState.
Open
)
744
if (this.State != ConnectionState.
Open
)
1227
if (previousState == ConnectionState.
Open
)
System\Data\Objects\ObjectContext.cs (1)
1434
Debug.Assert(ConnectionState.
Open
== _connection.State, "Connection must be open.");
System\Data\SqlClient\SqlProviderServices.cs (1)
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.Data.Entity.Design (1)
System\Data\Entity\Design\SSDLGenerator\FunctionDetailsReader.cs (1)
33
Debug.Assert(connection.State == ConnectionState.
Open
, "the connection is not Open");
System.Data.Linq (1)
DataContext.cs (1)
500
if (this.provider.Connection.State == ConnectionState.
Open
) {
System.Web (7)
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
) {
UI\WebControls\SqlDataSourceView.cs (4)
719
if (command.Connection.State != ConnectionState.
Open
) {
780
if (command.Connection.State == ConnectionState.
Open
) {
1058
if (connection.State == ConnectionState.
Open
) {
1095
if (connection.State != ConnectionState.
Open
) {
System.Workflow.Runtime (19)
Hosting\DbResourceAllocator.cs (1)
181
Debug.Assert((connection.State == System.Data.ConnectionState.
Open
),
Hosting\SqlWorkflowPersistenceService.cs (6)
118
if ((null == conn) || (ConnectionState.
Open
!= conn.State))
254
if ((null == connection) || (ConnectionState.
Open
!= connection.State))
303
if ((null == connection) || (ConnectionState.
Open
!= connection.State))
368
if ((null == connection) || (ConnectionState.
Open
!= connection.State))
418
if ((null == connection) || (ConnectionState.
Open
!= connection.State))
488
if ((null == connection) || (ConnectionState.
Open
!= connection.State))
Tracking\SqlTrackingService.cs (12)
601
if (ConnectionState.
Open
!= command.Connection.State)
1205
if ((null == command.Connection) || (ConnectionState.
Open
!= command.Connection.State))
1378
if ((null == command) || (null == command.Connection) || (ConnectionState.
Open
!= command.Connection.State))
1533
if ((null == command) || (null == command.Connection) || (ConnectionState.
Open
!= command.Connection.State))
1694
if ((null == command) || (null == command.Connection) || (ConnectionState.
Open
!= command.Connection.State))
1831
if ((null == command) || (null == command.Connection) || (ConnectionState.
Open
!= command.Connection.State))
1908
if ((null == command) || (null == command.Connection) || (ConnectionState.
Open
!= command.Connection.State))
1971
if ((null == command) || (null == command.Connection) || (ConnectionState.
Open
!= command.Connection.State))
2011
if (ConnectionState.
Open
!= command.Connection.State)
2054
if ((null == command) || (null == command.Connection) || (ConnectionState.
Open
!= command.Connection.State))
2093
if ((null == command) || (null == command.Connection) || (ConnectionState.
Open
!= command.Connection.State))
2118
if ((null == command) || (null == command.Connection) || (ConnectionState.
Open
!= command.Connection.State))