MetadataWorkspace.CreateQueryCommandTree Method (DbExpression)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates a new DbQueryCommandTree bound to this metadata workspace based on the specified query expression.

Namespace:   System.Data.Metadata.Edm
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public DbQueryCommandTree CreateQueryCommandTree(
	DbExpression 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.

.NET Framework
Available since 4.5
Return to top