Click or drag to resize

IDataAccessAdapterFetchEntityCollectionAsync Method

Async variant of FetchEntityCollection(QueryParameters). Fetches one or more entities which match the filter information in the parameters into the EntityCollection passed. The entity collection object has to contain an entity factory object which will be the factory for the entity instances to be fetched. It will apply paging and it will from there use a prefetch path fetch using the read page. It's important that pageSize is smaller than the set ParameterisedPrefetchPathThreshold. If pagesize is larger than the limits set for the ParameterisedPrefetchPathThreshold value, the query is likely to be slower than expected, though will work. If pageNumber / pageSize are set to values which disable paging, a normal prefetch path fetch will be performed.

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
Task FetchEntityCollectionAsync(
	QueryParameters parameters,
	CancellationToken cancellationToken
)

Parameters

parameters
Type: SD.LLBLGen.Pro.ORMSupportClassesQueryParameters
The parameters.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: Task
Exceptions
ExceptionCondition
ArgumentExceptionIf the passed in collectionToFill doesn't contain an entity factory.
Remarks
Async variant
See Also