Click or drag to resize
DataAccessAdapterCore.FetchDataReaderAsync Method (CommandBehavior, QueryParameters, CancellationToken)
Async variant of FetchDataReader(CommandBehavior, QueryParameters). Creates a new Retrieval query from the elements passed in and executes that retrievalquery to return 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.0.0.0 (5.0.0)
Syntax
public Task<IDataReader> FetchDataReaderAsync(
	CommandBehavior readerBehavior,
	QueryParameters parameters,
	CancellationToken cancellationToken
)

Parameters

readerBehavior
Type: System.Data.CommandBehavior
The reader behavior to set.
parameters
Type: SD.LLBLGen.Pro.ORMSupportClasses.QueryParameters
The parameters.
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: Task<IDataReader>
Open, ready to use IDataReader

Implements

IDataAccessAdapter.FetchDataReaderAsync(CommandBehavior, QueryParameters, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionparameters
Remarks
Advanced functionality: be aware that the datareader returned is open, and the dataaccessadapter's connection is also open
See Also