Sdílet prostřednictvím


IDatabase.CompileAsyncQuery<TResult>(QueryModel) Metoda

Definice

Převede model dotazu na funkci, kterou lze spustit, aby asynchronně získala výsledky dotazu z databáze.

public 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>>
Public 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ý se má spustit.

Návraty

Funkce, která asynchronně spustí dotaz.

Platí pro