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 afterExecuteReader()
returns.ODP.NET sets the
CommandBehavior
toCommandBehavior.CloseConnection
. As a result, the connection is closed once the reader is closed. -
ExecuteReader(commandBehavior)
commandBehavior
argument is ignored. TheCommandBehavior.CloseConnection
value is used.Since
OracleDataReader
relies on an open connection to fetch data, ODP.NET does not close the connection afterExecuteReader()
returns.ODP.NET sets the
CommandBehavior
toCommandBehavior.CloseConnection
. As a result, the connection is closed once the reader is closed.