Delen via


EntitySetSegmentTemplate Class

Definition

Represents a template that could match an IEdmEntitySet.

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

Constructors

EntitySetSegmentTemplate(EntitySetSegment)

Initializes a new instance of the EntitySetSegmentTemplate class.

EntitySetSegmentTemplate(IEdmEntitySet)

Initializes a new instance of the EntitySetSegmentTemplate class.

Properties

EntitySet

Gets the wrapped Edm entityset.

Segment

Gets the entity set 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