MetadataWorkspace::CreateQueryCommandTree Method (DbExpression^)
.NET Framework (current version)
Creates a new DbQueryCommandTree bound to this metadata workspace based on the specified query expression.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
Parameters
- query
-
Type:
System.Data.Common.CommandTrees::DbExpression^
A DbExpression that defines the query.
Return Value
Type: System.Data.Common.CommandTrees::DbQueryCommandTree^A new DbQueryCommandTree with the specified expression as it's Query property.
| Exception | Condition |
|---|---|
| ArgumentNullException | query |
| ArgumentException | query |
| ArgumentException | query |
.NET Framework
Available since 4.5
Available since 4.5
Show: