Share via


MetadataWorkspace.CreateQueryCommandTree(DbExpression) Method

Definition

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

public virtual System.Data.Entity.Core.Common.CommandTrees.DbQueryCommandTree CreateQueryCommandTree (System.Data.Entity.Core.Common.CommandTrees.DbExpression query);
abstract member CreateQueryCommandTree : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbQueryCommandTree
override this.CreateQueryCommandTree : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbQueryCommandTree
Public Overridable Function CreateQueryCommandTree (query As DbExpression) As DbQueryCommandTree

Parameters

query
DbExpression

A DbExpression that defines the query.

Returns

A new DbQueryCommandTree with the specified expression as it's Query property.

Exceptions

If query is null

If query is not structurally valid because it contains unresolvable variable references

Applies to