Jaa


PropertySegmentTemplate Class

Definition

Represents a template that could match an IEdmStructuralProperty.

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

Constructors

PropertySegmentTemplate(IEdmStructuralProperty)

Initializes a new instance of the PropertySegmentTemplate class.

PropertySegmentTemplate(PropertySegment)

Initializes a new instance of the PropertySegmentTemplate class.

Properties

Property

Gets the wrapped Edm property.

Segment

Gets the property 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