DbExpressionBuilder.Property Method (DbExpression, NavigationProperty)

.NET Framework (current version)
 

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

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

public static DbPropertyExpression Property(
	this DbExpression instance,
	NavigationProperty navigationProperty
)

Parameters

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

The instance from which to retrieve the navigation property.

navigationProperty
Type: System.Data.Metadata.Edm.NavigationProperty

Metadata for the navigation property to retrieve.

Return Value

Type: System.Data.Common.CommandTrees.DbPropertyExpression

A new DbPropertyExpression representing the navigation property retrieval.

Exception Condition
ArgumentNullException

navigationProperty or instance is null.

.NET Framework
Available since 4.5
Return to top
Show: