Click or drag to resize

DaoBase.GetAsProjectionAsync<T> Method (ITransaction, List<T>, IRetrievalQuery, CancellationToken, Boolean)

Async variant of GetAsProjection<T> (ITransaction, List<T> , IRetrievalQuery, Boolean) 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.11.0.0 (5.11.23.1114)
Syntax
protected Task GetAsProjectionAsync<T>(
	ITransaction transactionToUse,
	List<T> destination,
	IRetrievalQuery retrievalQuery,
	CancellationToken cancellationToken,
	bool performImplicitTypeConversions = false
)

Parameters

transactionToUse
Type: SD.LLBLGen.Pro.ORMSupportClasses.ITransaction
The transaction to use, if you execute this method inside a transcation. Specify null otherwise
destination
Type: System.Collections.Generic.List<T>
The destination to which instances of T will be added.
retrievalQuery
Type: SD.LLBLGen.Pro.ORMSupportClasses.IRetrievalQuery
The retrieval query.
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.
performImplicitTypeConversions (Optional)
Type: System.Boolean
If true, the projection code used will perform implicit type conversions using a slower pipeline. If false, it will use optimized projection logic which assumes the value at ordinal n is of the expected type.

Type Parameters

T

Return Value

Type: Task
See Also