Share via


LinkGenerationHelpers.GenerateNavigationPropertyLink Method (EntityInstanceContext, IEdmNavigationProperty, Boolean)

 

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

Namespace:   System.Web.Http.OData.Builder
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

public static Uri GenerateNavigationPropertyLink(
    this EntityInstanceContext entityContext,
    IEdmNavigationProperty navigationProperty,
    bool includeCast
)
public:
[ExtensionAttribute]
static Uri^ GenerateNavigationPropertyLink(
    EntityInstanceContext^ entityContext,
    IEdmNavigationProperty^ navigationProperty,
    bool includeCast
)
static member GenerateNavigationPropertyLink : 
        entityContext:EntityInstanceContext *
        navigationProperty:IEdmNavigationProperty *
        includeCast:bool -> Uri
<ExtensionAttribute>
Public Shared Function GenerateNavigationPropertyLink (
    entityContext As EntityInstanceContext,
    navigationProperty As IEdmNavigationProperty,
    includeCast As Boolean
) As Uri

Parameters

  • includeCast
    Type: System.Boolean

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

Return Value

Type: System.Uri

The navigation link following the OData URL conventions.

See Also

LinkGenerationHelpers Class
System.Web.Http.OData.Builder Namespace

Return to top