DbRelationshipNavigationExpression.NavigationSource Property

Definition

Gets or sets an DbExpression that specifies the starting point of the navigation and must be a reference to an entity instance.

C#
public System.Data.Common.CommandTrees.DbExpression NavigationSource { get; }

Property Value

An DbExpression that specifies the instance of the source relationship end from which navigation should occur.

Exceptions

The expression is null.

The expression is not associated with the command tree of the DbRelationshipNavigationExpression, or its result type is not equal or promotable to the reference type of the NavigateFrom property.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1