DbQueryCommandTree Constructor

 

Initializes a new instance of the DbQueryCommandTree class.

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

NameDescription
System_CAPS_pubmethodDbQueryCommandTree(MetadataWorkspace, DataSpace, DbExpression)

Initializes a new instance of the DbQueryCommandTree class that uses the specified metadata workspace.

System_CAPS_pubmethodDbQueryCommandTree(MetadataWorkspace, DataSpace, DbExpression, Boolean)

Initializes a new instance of the DbQueryCommandTree class that uses the specified metadata workspace.

System_CAPS_pubmethodDbQueryCommandTree(MetadataWorkspace, DataSpace, DbExpression, Boolean, Boolean)

Initializes a new instance of the DbQueryCommandTree class.


DbQueryCommandTree Constructor (MetadataWorkspace, DataSpace, DbExpression)

Initializes a new instance of the DbQueryCommandTree class that uses the specified metadata workspace.

public DbQueryCommandTree(
	MetadataWorkspace metadata,
	DataSpace dataSpace,
	DbExpression query
)

Parameters

metadata
Type: System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace

The metadata workspace that the command tree should use.

dataSpace
Type: System.Data.Entity.Core.Metadata.Edm.DataSpace

The logical 'space' that metadata in the expressions used in this command tree must belong to.

query
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression

A DbExpression that defines the logic of the query.

Exception Condition
ArgumentNullException

metadata or query is null.

ArgumentException

dataSpace does not represent a valid data space.


DbQueryCommandTree Constructor (MetadataWorkspace, DataSpace, DbExpression, Boolean)

Initializes a new instance of the DbQueryCommandTree class that uses the specified metadata workspace.

public DbQueryCommandTree(
	MetadataWorkspace metadata,
	DataSpace dataSpace,
	DbExpression query,
	bool validate
)

Parameters

metadata
Type: System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace

The metadata workspace that the command tree should use.

dataSpace
Type: System.Data.Entity.Core.Metadata.Edm.DataSpace

The logical 'space' that metadata in the expressions used in this command tree must belong to.

query
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression

A DbExpression that defines the logic of the query.

validate
Type: System.Boolean

true to validate the tree; otherwise, false. When set to false the validation of the tree is turned off.

Exception Condition
ArgumentNullException

metadata or query is null.

ArgumentException

dataSpace does not represent a valid data space.


DbQueryCommandTree Constructor (MetadataWorkspace, DataSpace, DbExpression, Boolean, Boolean)

Initializes a new instance of the DbQueryCommandTree class.

public DbQueryCommandTree(
	MetadataWorkspace metadata,
	DataSpace dataSpace,
	DbExpression query,
	bool validate,
	bool useDatabaseNullSemantics
)

Parameters

metadata
Type: System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace

The metadata workspace that the command tree should use.

dataSpace
Type: System.Data.Entity.Core.Metadata.Edm.DataSpace

The logical 'space' that metadata in the expressions used in this command tree must belong to.

query
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression

A DbExpression that defines the logic of the query.

validate
Type: System.Boolean

true to validate the tree; otherwise, false. When set to false the validation of the tree is turned off.

useDatabaseNullSemantics
Type: System.Boolean

true to use database null semantics; otherwise, false.