34 references to Open
Aspire.Hosting.MySql.Tests (3)
MySqlFunctionalTests.cs (3)
180
Assert.Equal(ConnectionState.
Open
, connection.State);
250
Assert.Equal(ConnectionState.
Open
, connection.State);
356
Assert.Equal(ConnectionState.
Open
, connection.State);
Aspire.Hosting.PostgreSQL.Tests (1)
PostgresFunctionalTests.cs (1)
406
Assert.Equal(ConnectionState.
Open
, connection.State);
Aspire.Hosting.SqlServer.Tests (3)
SqlServerFunctionalTests.cs (3)
95
if (conn.State != System.Data.ConnectionState.
Open
)
198
if (conn.State != System.Data.ConnectionState.
Open
)
280
if (conn.State != System.Data.ConnectionState.
Open
)
System.Data.Common (9)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (3)
343
case (ConnectionState.
Open
):
345
case (ConnectionState.
Open
| ConnectionState.Executing):
347
case (ConnectionState.
Open
| ConnectionState.Fetching):
System\Data\Common\DBCommandBuilder.cs (1)
580
if (0 == (ConnectionState.
Open
& connection.State))
System\Data\Common\DbDataAdapter.cs (5)
414
ConnectionState originalState = ConnectionState.
Open
;
620
ConnectionState originalState = ConnectionState.
Open
;
1205
if (ConnectionState.
Open
== state)
1220
if (ConnectionState.
Open
== state)
1309
if (ConnectionState.
Open
== state)
System.Data.Odbc (18)
Common\System\Data\ProviderBase\DbConnectionFactory.cs (1)
83
if ((oldConnection != null) && (oldConnection.State == ConnectionState.
Open
))
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (3)
343
case (ConnectionState.
Open
):
345
case (ConnectionState.
Open
| ConnectionState.Executing):
347
case (ConnectionState.
Open
| ConnectionState.Fetching):
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionClosed.cs (1)
64
private DbConnectionOpenBusy() : base(ConnectionState.
Open
)
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionInternal.cs (3)
15
internal static readonly StateChangeEventArgs StateChangeClosed = new StateChangeEventArgs(ConnectionState.
Open
, ConnectionState.Closed);
16
internal static readonly StateChangeEventArgs StateChangeOpen = new StateChangeEventArgs(ConnectionState.Closed, ConnectionState.
Open
);
37
protected DbConnectionInternal() : this(ConnectionState.
Open
, true, false)
System\Data\Odbc\OdbcCommand.cs (1)
947
if (ConnectionState.
Open
!= state)
System\Data\Odbc\OdbcCommandBuilder.cs (1)
135
if (ConnectionState.
Open
!= state)
System\Data\Odbc\OdbcConnection.cs (3)
314
if (ConnectionState.
Open
!= state)
635
if (ConnectionState.
Open
!= state)
640
if (ConnectionState.
Open
!= state)
System\Data\Odbc\OdbcConnectionHelper.cs (5)
141
if (ConnectionState.
Open
== innerConnection.State)
220
ConnectionState originalState = _innerConnection.State & ConnectionState.
Open
;
221
ConnectionState currentState = to.State & ConnectionState.
Open
;
228
if (ConnectionState.Closed == originalState && ConnectionState.
Open
== currentState)
232
else if (ConnectionState.
Open
== originalState && ConnectionState.Closed == currentState)