IFilterQuery<TEntity, TRow>.GetEntitiesAsync Method
Asynchronously gets the the entities resulting from this query.
Overloads
Name | Description |
---|---|
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.
- C#
- VB
System.Collections.Generic.IAsyncEnumerable<TEntity> GetEntitiesAsync();
Public MustOverride Function GetEntitiesAsync() As System.Collections.Generic.IAsyncEnumerable(Of TEntity)
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.
- C#
- VB
System.Collections.Generic.IAsyncEnumerable<TEntity> GetEntitiesAsync(int start);
Public MustOverride Function GetEntitiesAsync(ByVal start As Integer) As System.Collections.Generic.IAsyncEnumerable(Of TEntity)
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.
- C#
- VB
System.Collections.Generic.IAsyncEnumerable<TEntity> GetEntitiesAsync(int start, int count);
Public MustOverride Function GetEntitiesAsync(ByVal start As Integer, ByVal count As Integer) As System.Collections.Generic.IAsyncEnumerable(Of TEntity)
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.