ObjectQuery.IQueryable.Expression 屬性
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
取得描述此查詢的運算式。 若為使用 LINQ 產生器模式所建置的查詢,就會傳回完整的 LINQ 運算式樹狀架構,否則,會傳回包裝此查詢的常數運算式。 請注意,系統不會快取預設運算式。 這讓就能區別 LINQ 與 Entity-SQL 查詢。
命名空間: System.Data.Entity.Core.Objects
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private ReadOnly Property Expression As Expression
Implements IQueryable.Expression
Get
'用途
Dim instance As ObjectQuery
Dim value As Expression
value = CType(instance, IQueryable).Expression
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
Expression IQueryable.Expression { get; }
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual property Expression^ Expression {
Expression^ get () sealed = IQueryable::Expression::get;
}
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract Expression : Expression
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override Expression : Expression
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
屬性值
類型:System.Linq.Expressions.Expression