共用方式為


ObjectQuery.IQueryable.Provider 屬性

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

取得與此查詢執行個體相關聯的 IQueryProvider

命名空間:  System.Data.Entity.Core.Objects
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private ReadOnly Property Provider As IQueryProvider 
    Implements IQueryable.Provider 
    Get
'用途
Dim instance As ObjectQuery 
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.

屬性值

類型:System.Linq.IQueryProvider

Implements

IQueryable.Provider

請參閱

參考

ObjectQuery 類別

System.Data.Entity.Core.Objects 命名空間