DbExpressionBuilder.Property Method (DbExpression, EdmProperty)

.NET Framework (current version)
 

Creates a new DbPropertyExpression representing the retrieval of the specified property.

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

public static DbPropertyExpression Property(
	this DbExpression instance,
	EdmProperty propertyMetadata
)

Parameters

instance
Type: System.Data.Common.CommandTrees.DbExpression

The instance from which to retrieve the property. May be null if the property is static.

propertyMetadata
Type: System.Data.Metadata.Edm.EdmProperty

Metadata for the property to retrieve.

Return Value

Type: System.Data.Common.CommandTrees.DbPropertyExpression

A new DbPropertyExpression representing the property retrieval.

Exception Condition
ArgumentNullException

propertyMetadata is null or instance is null and the property is not static.

.NET Framework
Available since 4.5
Return to top
Show: