Share via


EdmModelExtensions.GetNavigationSourceLinkBuilder Method

Definition

Gets the NavigationSourceLinkBuilderAnnotation to be used while generating self and navigation links for the given navigation source.

public static Microsoft.AspNet.OData.Builder.NavigationSourceLinkBuilderAnnotation GetNavigationSourceLinkBuilder (this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmNavigationSource navigationSource);
static member GetNavigationSourceLinkBuilder : Microsoft.OData.Edm.IEdmModel * Microsoft.OData.Edm.IEdmNavigationSource -> Microsoft.AspNet.OData.Builder.NavigationSourceLinkBuilderAnnotation
<Extension()>
Public Function GetNavigationSourceLinkBuilder (model As IEdmModel, navigationSource As IEdmNavigationSource) As NavigationSourceLinkBuilderAnnotation

Parameters

model
IEdmModel

The IEdmModel containing the navigation source.

navigationSource
IEdmNavigationSource

The navigation source.

Returns

The NavigationSourceLinkBuilderAnnotation if set for the given the singleton; otherwise, a new NavigationSourceLinkBuilderAnnotation that generates URLs that follow OData URL conventions.

Applies to