Click or drag to resize

DataAccessAdapterCore.ExecuteMultiRowRetrievalQueryAsync Method

Async variant of ExecuteMultiRowRetrievalQuery(IRetrievalQuery, IEntityFactory2, IEntityCollection2,IFieldPersistenceInfo[], Boolean, IEntityFields2). Executes the passed in retrieval query and, if not null, runs it inside the passed in transaction. Used to read 1 or more rows. It sets the connection object of the command object of query object passed in to the connection object of this class.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax
public virtual Task ExecuteMultiRowRetrievalQueryAsync(
	IRetrievalQuery queryToExecute,
	IEntityFactory2 entityFactory,
	IEntityCollection2 collectionToFill,
	IFieldPersistenceInfo[] fieldsPersistenceInfo,
	bool allowDuplicates,
	IEntityFields2 fieldsUsedForQuery,
	CancellationToken cancellationToken
)

Parameters

queryToExecute
Type: SD.LLBLGen.Pro.ORMSupportClasses.IRetrievalQuery
Retrieval query to execute
entityFactory
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFactory2
the factory object which can produce the entities this method has to fill.
collectionToFill
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityCollection2
Collection to fill with the retrieved rows.
fieldsPersistenceInfo
Type:SD.LLBLGen.Pro.ORMSupportClasses.IFieldPersistenceInfo[]
The persistence information for the fields of the entity created by entityFactory
allowDuplicates
Type: System.Boolean
Flag to signal if duplicates in the datastream should be loaded into the collection (true) or not (false)
fieldsUsedForQuery
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields2
Fields used for producing the query
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: Task

Implements

IDataAccessAdapter.ExecuteMultiRowRetrievalQueryAsync(IRetrievalQuery, IEntityFactory2, IEntityCollection2,IFieldPersistenceInfo[], Boolean, IEntityFields2, CancellationToken)
See Also