ExecuteReader

OracleDataReader ExecuteReader returns an OracleDataReader.

Overload List:

  • ExecuteReader()

    Since OracleDataReader relies on an open connection to fetch data, ODP.NET does not close the connection after ExecuteReader() returns.

    ODP.NET sets the CommandBehavior to CommandBehavior.CloseConnection. As a result, the connection is closed once the reader is closed.

  • ExecuteReader(commandBehavior)

    commandBehavior argument is ignored. The CommandBehavior.CloseConnection value is used.

    Since OracleDataReader relies on an open connection to fetch data, ODP.NET does not close the connection after ExecuteReader() returns.

    ODP.NET sets the CommandBehavior to CommandBehavior.CloseConnection. As a result, the connection is closed once the reader is closed.