次の 2 つのオブジェクトがあるとします。
OracleConnection connection = new OracleConnection(connectionString);
OracleCommand command = new OracleCommand(sql, connection);
接続または Oracle を閉じるには、command.Dispose()、connection.Dispose()、またはその両方を呼び出す必要がありますか?
これで十分ですか:
using(connection)
{
OracleDataReader reader = cmd.ExecuteReader();
// whatever...
}