DbRelationshipNavigationExpression.NavigationSource Property

 
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.

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

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

public DbExpression NavigationSource { get; }

Property Value

Type: System.Data.Common.CommandTrees.DbExpression

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

Exception Condition
ArgumentNullException

The expression is null.

ArgumentException

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.

.NET Framework
Available since 3.5
Return to top
Show: