Click or drag to resize
DaoBase.GetAsDataReader Method (ITransaction, 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 specified, 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.0.0.0 (5.0.0)
Syntax
public IDataReader GetAsDataReader(
	ITransaction transactionToUse,
	IRetrievalQuery queryToExecute,
	CommandBehavior readerBehavior
)

Parameters

transactionToUse
Type: SD.LLBLGen.Pro.ORMSupportClasses.ITransaction
The transaction to use, if you execute this method inside a transcation. Specify null otherwise
queryToExecute
Type: SD.LLBLGen.Pro.ORMSupportClasses.IRetrievalQuery
The query to execute.
readerBehavior
Type: System.Data.CommandBehavior
The reader behavior to set.

Return Value

Type: IDataReader
Open, ready to use IDataReader

Implements

IDao.GetAsDataReader(ITransaction, IRetrievalQuery, CommandBehavior)
Remarks
Advanced functionality: be aware that the datareader returned is open, and the connection used to open this datareader is also open
See Also