Sdílet prostřednictvím


Database.CompileAsyncQuery<TResult>(QueryModel) Metoda

Definice

Převede model dotazu na funkci, kterou je možné spustit asynchronně získat výsledky dotazu z databáze.

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))

Parametry typu

TResult

Typ výsledků vrácených dotazem

Parametry

queryModel
Remotion.Linq.QueryModel

Objektový model představující dotaz, který má být proveden.

Návraty

Funkce, která asynchronně spustí dotaz.

Implementuje

Platí pro