Jaa


NavigationLinkSegmentTemplate Class

Definition

Represents a template that can match a NavigationPropertyLinkSegment and a potential key.

public class NavigationLinkSegmentTemplate : Microsoft.AspNetCore.OData.Routing.Template.ODataSegmentTemplate
type NavigationLinkSegmentTemplate = class
    inherit ODataSegmentTemplate
Public Class NavigationLinkSegmentTemplate
Inherits ODataSegmentTemplate
Inheritance
NavigationLinkSegmentTemplate

Constructors

NavigationLinkSegmentTemplate(IEdmNavigationProperty, IEdmNavigationSource)

Initializes a new instance of the NavigationLinkSegmentTemplate class.

NavigationLinkSegmentTemplate(NavigationPropertyLinkSegment)

Initializes a new instance of the NavigationLinkSegmentTemplate class.

Properties

Key

Gets/sets the related key template.

NavigationProperty

Gets the Edm navigation property.

NavigationSource

Gets the navigation source.

Segment

Gets the navigation property link segment.

Methods

GetTemplates(ODataRouteOptions)

Gets the templates. It's case-insensitive template. It's used to build the routing template in conventional routing. It's not used in attribute routing. The template string should include the leading "/" if apply.

TryTranslate(ODataTemplateTranslateContext)

Translate the template into a real OData path segment ODataPathSegment

Applies to