IDataAccessAdapterFetchDataReader Method (IRetrievalQuery, CommandBehavior) |
Executes the passed in retrievalquery and returns an open, ready to use IDataReader. The datareader's command behavior is set to the
readerBehavior passed in. If a transaction is in progress, the command is wired to the transaction.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax IDataReader FetchDataReader(
IRetrievalQuery queryToExecute,
CommandBehavior readerBehavior
)
Function FetchDataReader (
queryToExecute As IRetrievalQuery,
readerBehavior As CommandBehavior
) As IDataReader
Parameters
- queryToExecute
- Type: SD.LLBLGen.Pro.ORMSupportClassesIRetrievalQuery
The query to execute. - readerBehavior
- Type: System.DataCommandBehavior
The reader behavior to set.
Return Value
Type:
IDataReaderOpen, ready to use IDataReader
Remarks Advanced functionality: be aware that the datareader returned is open, and the dataaccessadapter's connection is also open
See Also