DbQuery.IQueryable.Provider 属性
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
IQueryable 提供程序。
命名空间: System.Data.Entity.Infrastructure
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private ReadOnly Property Provider As IQueryProvider
Implements IQueryable.Provider
Get
用法
Dim instance As DbQuery
Dim value As IQueryProvider
value = CType(instance, IQueryable).Provider
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
IQueryProvider IQueryable.Provider { get; }
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual property IQueryProvider^ Provider {
IQueryProvider^ get () sealed = IQueryable::Provider::get;
}
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract Provider : IQueryProvider
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override Provider : IQueryProvider
JScript supports the use of explicit interface implementations, but not the declarations of new ones.