Jazyk

IDatabase.CompileAsyncQuery<TResult>(QueryModel) Metoda

Definice

Přeloží model dotazu na funkci, která se dá spustit asynchronně získat 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