Database.CompileAsyncQuery<TResult>(QueryModel) 方法

定义

将查询模型转换为可执行以异步方式从数据库获取查询结果的函数。

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

类型参数

TResult

查询返回的结果的类型。

参数

queryModel
Remotion.Linq.QueryModel

表示要执行的查询的对象模型。

返回

将异步执行查询的函数。

实现

适用于