DaoBaseGetAsProjectionAsyncT Method (ITransaction, ListT, IRetrievalQuery, CancellationToken) |
Async variant of
GetAsProjectionT(ITransaction, ListT, IRetrievalQuery)
Executes the passed in retrievalquery and projects the resultset onto instances of T (each row is materialized into an instance of T).
If a transaction is specified, the command is wired to the transaction and executed inside the transaction. The projection results
will be stored in the specified destination set.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.1.0.0 (5.1.0)
Syntax protected Task GetAsProjectionAsync<T>(
ITransaction transactionToUse,
List<T> destination,
IRetrievalQuery retrievalQuery,
CancellationToken cancellationToken
)
Protected Function GetAsProjectionAsync(Of T) (
transactionToUse As ITransaction,
destination As List(Of T),
retrievalQuery As IRetrievalQuery,
cancellationToken As CancellationToken
) As Task
Parameters
- transactionToUse
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
The transaction to use, if you execute this method inside a transcation. Specify null otherwise - destination
- Type: System.Collections.GenericListT
The destination to which instances of T will be added. - retrievalQuery
- Type: SD.LLBLGen.Pro.ORMSupportClassesIRetrievalQuery
The retrieval query. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Type Parameters
- T
Return Value
Type:
TaskSee Also