NavigationSourceConfiguration<TEntityType>.HasNavigationPropertiesLink Method (IEnumerable<NavigationPropertyConfiguration>, Func<EntityInstanceContext<TEntityType>, IEdmNavigationProperty, Uri>, Boolean)
Configures the navigation link for the given navigation properties for entities from this navigation source.
Namespace: System.Web.OData.Builder
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public void HasNavigationPropertiesLink(
IEnumerable<NavigationPropertyConfiguration> navigationProperties,
Func<EntityInstanceContext<TEntityType>, IEdmNavigationProperty, Uri> navigationLinkFactory,
bool followsConventions
)
public:
void HasNavigationPropertiesLink(
IEnumerable<NavigationPropertyConfiguration^>^ navigationProperties,
Func<EntityInstanceContext<TEntityType>^, IEdmNavigationProperty^, Uri^>^ navigationLinkFactory,
bool followsConventions
)
member HasNavigationPropertiesLink :
navigationProperties:IEnumerable<NavigationPropertyConfiguration> *
navigationLinkFactory:Func<EntityInstanceContext<'TEntityType>, IEdmNavigationProperty, Uri> *
followsConventions:bool -> unit
Public Sub HasNavigationPropertiesLink (
navigationProperties As IEnumerable(Of NavigationPropertyConfiguration),
navigationLinkFactory As Func(Of EntityInstanceContext(Of TEntityType), IEdmNavigationProperty, Uri),
followsConventions As Boolean
)
Parameters
navigationProperties
Type: System.Collections.Generic.IEnumerable<NavigationPropertyConfiguration>The navigation properties 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