DbExpressionBuilder.Property Method (DbExpression, RelationshipEndMember)

.NET Framework (current version)
 
System_CAPS_noteNote

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

Creates a new DbPropertyExpression representing the retrieval of the specified relationship end member.

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

public static DbPropertyExpression Property(
	this DbExpression instance,
	RelationshipEndMember relationshipEnd
)

Parameters

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

The instance from which to retrieve the relationship end member.

relationshipEnd
Type: System.Data.Metadata.Edm.RelationshipEndMember

Metadata for the relationship end member to retrieve.

Return Value

Type: System.Data.Common.CommandTrees.DbPropertyExpression

A new DbPropertyExpression representing the relationship end member retrieval.

Exception Condition
ArgumentNullException

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

.NET Framework
Available since 4.5
Return to top
Show: