共用方式為


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

物件模型,表示要執行的查詢。

傳回

會以非同步方式執行查詢的函式。

適用於