ExecuteReader
OracleDataReader ExecuteReader returns an OracleDataReader.
Overload List:
-
ExecuteReader()Since
OracleDataReaderrelies on an open connection to fetch data, ODP.NET does not close the connection afterExecuteReader()returns.ODP.NET sets the
CommandBehaviortoCommandBehavior.CloseConnection. As a result, the connection is closed once the reader is closed. -
ExecuteReader(commandBehavior)commandBehaviorargument is ignored. TheCommandBehavior.CloseConnectionvalue is used.Since
OracleDataReaderrelies on an open connection to fetch data, ODP.NET does not close the connection afterExecuteReader()returns.ODP.NET sets the
CommandBehaviortoCommandBehavior.CloseConnection. As a result, the connection is closed once the reader is closed.