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.OData.Builder
Assembly: System.Web.OData (in System.Web.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
entityContext
Type: System.Web.OData.EntityInstanceContextThe EntityInstanceContext representing the entity for which the navigation link needs to be generated.
navigationProperty
Type: Microsoft.OData.Edm.IEdmNavigationPropertyThe EDM navigation property.
includeCast
Type: System.BooleanRepresents 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.OData.Builder Namespace
Return to top