Class NavigationPathSegment
An ODataPathSegment implementation representing a navigation.
public class NavigationPathSegment : ODataPathSegment
- Inheritance
-
NavigationPathSegment
- Inherited Members
Constructors
NavigationPathSegment(IEdmNavigationProperty)
Initializes a new instance of the NavigationPathSegment class.
public NavigationPathSegment(IEdmNavigationProperty navigationProperty)
Parameters
navigationProperty
IEdmNavigationPropertyThe navigation property being accessed by this segment.
NavigationPathSegment(string)
Initializes a new instance of the NavigationPathSegment class.
public NavigationPathSegment(string navigationPropertyName)
Parameters
navigationPropertyName
stringName of the navigation property.
Properties
NavigationProperty
Gets the navigation property being accessed by this segment.
public IEdmNavigationProperty NavigationProperty { get; }
Property Value
- IEdmNavigationProperty
NavigationPropertyName
Gets the name of the navigation property.
public string NavigationPropertyName { get; }
Property Value
SegmentKind
Gets the segment kind for the current segment.
public override string SegmentKind { get; }
Property Value
Methods
GetEdmType(IEdmType)
Gets the EDM type for this segment.
public override IEdmType GetEdmType(IEdmType previousEdmType)
Parameters
previousEdmType
IEdmTypeThe EDM type of the previous path segment.
Returns
- IEdmType
The EDM type for this segment.
GetEntitySet(IEdmEntitySet)
Gets the entity set for this segment.
public override IEdmEntitySet GetEntitySet(IEdmEntitySet previousEntitySet)
Parameters
previousEntitySet
IEdmEntitySetThe entity set of the previous path segment.
Returns
- IEdmEntitySet
The entity set for this segment.
ToString()
Returns a string that represents this instance.
public override string ToString()