Jazyk

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

Návraty

Funkce, která asynchronně spustí dotaz.

Implementuje

Platí pro