Language

NavigationSegmentTemplate Class

Definition

Represents a template that could match an IEdmNavigationProperty.

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

Constructors

Name Description
NavigationSegmentTemplate(IEdmNavigationProperty, IEdmNavigationSource)

Initializes a new instance of the NavigationSegmentTemplate class.

NavigationSegmentTemplate(NavigationPropertySegment)

Initializes a new instance of the NavigationSegmentTemplate class.

Properties

Name Description
NavigationProperty

Gets the wrapped Edm navigation property.

Segment

Gets the navigation property segment.

Methods

Name Description
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