語言

IDatabase.CompileAsyncQuery<TResult>(QueryModel) 方法

定義

將查詢模型轉換成可執行的函式,非同步從資料庫取得查詢結果。

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

類型參數

TResult

查詢回傳的結果類型。

參數

queryModel
Remotion.Linq.QueryModel

一個代表要執行查詢的物件模型。

傳回

一個會非同步執行查詢的函式。

適用於