Share via


NavigationSourceConfiguration<TEntityType>.HasNavigationPropertyLink Method

Definition

Configures the navigation link for the given navigation property for entities from this navigation source.

public void HasNavigationPropertyLink (Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration navigationProperty, Func<Microsoft.AspNet.OData.ResourceContext<TEntityType>,Microsoft.OData.Edm.IEdmNavigationProperty,Uri> navigationLinkFactory, bool followsConventions);
member this.HasNavigationPropertyLink : Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration * Func<Microsoft.AspNet.OData.ResourceContext<'EntityType>, Microsoft.OData.Edm.IEdmNavigationProperty, Uri> * bool -> unit
Public Sub HasNavigationPropertyLink (navigationProperty As NavigationPropertyConfiguration, navigationLinkFactory As Func(Of ResourceContext(Of TEntityType), IEdmNavigationProperty, Uri), followsConventions As Boolean)

Parameters

navigationProperty
NavigationPropertyConfiguration

The navigation property for which the navigation link is being generated.

navigationLinkFactory
Func<ResourceContext<TEntityType>,IEdmNavigationProperty,Uri>

The factory used to generate the navigation link.

followsConventions
Boolean

true if the factory follows OData navigation link conventions; otherwise, false.

Applies to