LinkGenerationHelpers.GenerateNavigationPropertyLink Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The navigation link following the OData URL conventions.