IDbAsyncQueryProvider 接口

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

定义用于创建和异步执行 IQueryable 对象所描述的查询的方法。 此接口用于与实体框架查询交互且不应由自定义类来实现。

命名空间:  System.Data.Entity.Infrastructure
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public Interface IDbAsyncQueryProvider _
    Inherits IQueryProvider
用法
Dim instance As IDbAsyncQueryProvider
public interface IDbAsyncQueryProvider : IQueryProvider
public interface class IDbAsyncQueryProvider : IQueryProvider
type IDbAsyncQueryProvider =  
    interface 
        interface IQueryProvider 
    end
public interface IDbAsyncQueryProvider extends IQueryProvider

IDbAsyncQueryProvider 类型公开以下成员。

方法

  名称 描述
公共方法 CreateQuery (继承自 IQueryProvider。)
公共方法 Execute (继承自 IQueryProvider。)
公共方法 ExecuteAsync(Expression, CancellationToken) 异步执行指定表达式树所表示的查询。
公共方法 ExecuteAsync<TResult>(Expression, CancellationToken) 异步执行指定表达式树所表示的强类型查询。

顶部

请参阅

参考

System.Data.Entity.Infrastructure 命名空间