Share via


Database.CompileAsyncQuery<TResult>(QueryModel) Method

Definition

Translates a query model into a function that can be executed to asynchronously get query results from the database.

public virtual Func<Microsoft.EntityFrameworkCore.Query.QueryContext,System.Collections.Generic.IAsyncEnumerable<TResult>> CompileAsyncQuery<TResult> (Remotion.Linq.QueryModel queryModel);
abstract member CompileAsyncQuery : Remotion.Linq.QueryModel -> Func<Microsoft.EntityFrameworkCore.Query.QueryContext, System.Collections.Generic.IAsyncEnumerable<'Result>>
override this.CompileAsyncQuery : Remotion.Linq.QueryModel -> Func<Microsoft.EntityFrameworkCore.Query.QueryContext, System.Collections.Generic.IAsyncEnumerable<'Result>>
Public Overridable Function CompileAsyncQuery(Of TResult) (queryModel As QueryModel) As Func(Of QueryContext, IAsyncEnumerable(Of TResult))

Type Parameters

TResult

The type of results returned by the query.

Parameters

queryModel
Remotion.Linq.QueryModel

An object model representing the query to be executed.

Returns

A function that will asynchronously execute the query.

Implements

Applies to