Skip to main content
Version: 4.2.5

IFilterQuery<TEntity, TRow>.GetEntitiesAsync Method

Asynchronously gets the the entities resulting from this query.

Overloads

NameDescription
GetEntitiesAsync()Asynchronously gets the entities contained in this query.
GetEntitiesAsync(int)Gets the entities resulting from this query, starting at the specified start index.
GetEntitiesAsync(int, int)Gets the specified number of entities resulting from this query, starting at the specified start index.

GetEntitiesAsync() Method

Asynchronously gets the entities contained in this query.

System.Collections.Generic.IAsyncEnumerable<TEntity> GetEntitiesAsync();

Returns

System.Collections.Generic.IAsyncEnumerable<TEntity>
An enumerator that allows foreach to be used to process the entities in this collection.

GetEntitiesAsync(int) Method

Gets the entities resulting from this query, starting at the specified start index.

System.Collections.Generic.IAsyncEnumerable<TEntity> GetEntitiesAsync(int start);

Parameters

start int
The zero-based start index to start enumeration from.

Returns

System.Collections.Generic.IAsyncEnumerable<TEntity>
An enumerator that allows foreach to be used to process the keys in this collection.

Exceptions

IndexOutOfRangeException
start is negative or greater than the number of items in the result set.

Remarks

Note that multiple calls to this method will always return entities from the same result set.

GetEntitiesAsync(int, int) Method

Gets the specified number of entities resulting from this query, starting at the specified start index.

System.Collections.Generic.IAsyncEnumerable<TEntity> GetEntitiesAsync(int start, int count);

Parameters

start int
The zero-based start index to start enumeration from.

count int
The maximum number of items to retrieve.

Returns

System.Collections.Generic.IAsyncEnumerable<TEntity>
An enumerator that allows foreach to be used to process the keys in this collection.

Exceptions

IndexOutOfRangeException
start is negative or greater than the number of items in the result set.

Remarks

Note that multiple calls to this method will always return entities from the same result set.