EdmModelExtensions.GetNavigationSourceLinkBuilder Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.