DaoBase.GetAsDataReaderAsync Method (ITransaction, IRetrievalQuery, CommandBehavior, CancellationToken) |
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax public Task<IDataReader> GetAsDataReaderAsync(
ITransaction transactionToUse,
IRetrievalQuery queryToExecute,
CommandBehavior readerBehavior,
CancellationToken cancellationToken
)
Public Function GetAsDataReaderAsync (
transactionToUse As ITransaction,
queryToExecute As IRetrievalQuery,
readerBehavior As CommandBehavior,
cancellationToken As CancellationToken
) As Task(Of IDataReader)
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. - cancellationToken
- Type: System.Threading.CancellationToken
The cancellation token.
Return Value
Type:
Task<IDataReader>
Open, ready to use IDataReader
Implements
IDao.GetAsDataReaderAsync(ITransaction, IRetrievalQuery, CommandBehavior, CancellationToken)Remarks
Advanced functionality: be aware that the datareader returned is open, and the connection used to open this datareader is also open
See Also