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