NavigationSourceConfiguration<TEntityType>.HasNavigationPropertyLink Method (NavigationPropertyConfiguration, Func<EntityInstanceContext<TEntityType>, IEdmNavigationProperty, Uri>, Boolean)
Configures the navigation link for the given navigation property for entities from this navigation source.
Namespace: System.Web.OData.Builder
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public void HasNavigationPropertyLink(
NavigationPropertyConfiguration navigationProperty,
Func<EntityInstanceContext<TEntityType>, IEdmNavigationProperty, Uri> navigationLinkFactory,
bool followsConventions
)
public:
void HasNavigationPropertyLink(
NavigationPropertyConfiguration^ navigationProperty,
Func<EntityInstanceContext<TEntityType>^, IEdmNavigationProperty^, Uri^>^ navigationLinkFactory,
bool followsConventions
)
member HasNavigationPropertyLink :
navigationProperty:NavigationPropertyConfiguration *
navigationLinkFactory:Func<EntityInstanceContext<'TEntityType>, IEdmNavigationProperty, Uri> *
followsConventions:bool -> unit
Public Sub HasNavigationPropertyLink (
navigationProperty As NavigationPropertyConfiguration,
navigationLinkFactory As Func(Of EntityInstanceContext(Of TEntityType), IEdmNavigationProperty, Uri),
followsConventions As Boolean
)
Parameters
navigationProperty
Type: System.Web.OData.Builder.NavigationPropertyConfigurationThe navigation property for which the navigation link is being generated.
navigationLinkFactory
Type: System.Func<EntityInstanceContext<TEntityType>, IEdmNavigationProperty, Uri>The factory used to generate the navigation link.
followsConventions
Type: System.Booleantrue if the factory follows OData navigation link conventions; otherwise, false.
See Also
NavigationSourceConfiguration<TEntityType> Class
System.Web.OData.Builder Namespace
Return to top