Share via


LinkGenerationHelpers.GenerateNavigationPropertyLink Method

Definition

Generates a navigation link following the OData URL conventions for the entity represented by resourceContext and the given navigation property.

public static Uri GenerateNavigationPropertyLink (this Microsoft.AspNet.OData.ResourceContext resourceContext, Microsoft.OData.Edm.IEdmNavigationProperty navigationProperty, bool includeCast);
static member GenerateNavigationPropertyLink : Microsoft.AspNet.OData.ResourceContext * Microsoft.OData.Edm.IEdmNavigationProperty * bool -> Uri
<Extension()>
Public Function GenerateNavigationPropertyLink (resourceContext As ResourceContext, navigationProperty As IEdmNavigationProperty, includeCast As Boolean) As Uri

Parameters

resourceContext
ResourceContext

The ResourceContext representing the entity for which the navigation link needs to be generated.

navigationProperty
IEdmNavigationProperty

The EDM navigation property.

includeCast
Boolean

Represents whether the generated link should have a cast segment representing a type cast.

Returns

Uri

The navigation link following the OData URL conventions.

Applies to