ObjectQuery.IQueryable.Expression 属性
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 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