Table of Contents

Class ODataPathSegment

Namespace
System.Web.Http.OData.Routing
Assembly
System.Web.Http.OData.dll

Provides an object representation for an OData path segment with additional information about the EDM type and entity set for the path.

public abstract class ODataPathSegment
Inheritance
ODataPathSegment
Derived
Inherited Members

Constructors

ODataPathSegment()

Initializes a new instance of the ODataPathSegment class.

protected ODataPathSegment()

Properties

SegmentKind

Gets the segment kind for the current segment.

public abstract string SegmentKind { get; }

Property Value

string

Methods

GetEdmType(IEdmType)

Gets the EDM type for this segment.

public abstract IEdmType GetEdmType(IEdmType previousEdmType)

Parameters

previousEdmType IEdmType

The 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 abstract IEdmEntitySet GetEntitySet(IEdmEntitySet previousEntitySet)

Parameters

previousEntitySet IEdmEntitySet

The entity set of the previous path segment.

Returns

IEdmEntitySet

The entity set for this segment.