Click or drag to resize

IDao.GetAsProjectionAsync<T> Method (IRetrievalQuery, CancellationToken)

Async variant of GetAsProjection<T> (IRetrievalQuery) Executes the passed in retrievalquery and projects the resultset onto instances of T (each row is materialized into an instance of T).

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
Task<List<T>> GetAsProjectionAsync<T>(
	IRetrievalQuery queryToExecute,
	CancellationToken cancellationToken
)

Parameters

queryToExecute
Type: SD.LLBLGen.Pro.ORMSupportClasses.IRetrievalQuery
The query to execute.
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.

Type Parameters

T
Type of the return elements, one for each row

Return Value

Type: Task<List<T>>
List of instances of T, one for each row in the resultset of queryToExecute
See Also