Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DbQueryCommandTree.Query Property

Gets an DbExpression that defines the logic of the query operation.

Namespace:  System.Data.Common.CommandTrees
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public DbExpression Query { get; }

Property Value

Type: System.Data.Common.CommandTrees.DbExpression
An DbExpression that defines the logic of the query operation.

ExceptionCondition
ArgumentNullException

The expression is null.

ArgumentException

The expression is associated with a different command tree.

The Query property describes the root of the expression tree that defines the query. The DbCommandTree is in an invalid state until the Query property is set to a valid value.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft