Share via


EdmModelExtensions.GetNavigationSourceLinkBuilder Method (IEdmModel, IEdmNavigationSource)

 

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

Namespace:   System.Web.OData
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public static NavigationSourceLinkBuilderAnnotation GetNavigationSourceLinkBuilder(
    this IEdmModel model,
    IEdmNavigationSource navigationSource
)
public:
[ExtensionAttribute]
static NavigationSourceLinkBuilderAnnotation^ GetNavigationSourceLinkBuilder(
    IEdmModel^ model,
    IEdmNavigationSource^ navigationSource
)
static member GetNavigationSourceLinkBuilder : 
        model:IEdmModel *
        navigationSource:IEdmNavigationSource -> NavigationSourceLinkBuilderAnnotation
<ExtensionAttribute>
Public Shared Function GetNavigationSourceLinkBuilder (
    model As IEdmModel,
    navigationSource As IEdmNavigationSource
) As NavigationSourceLinkBuilderAnnotation

Parameters

Return Value

Type: System.Web.OData.Builder.NavigationSourceLinkBuilderAnnotation

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

See Also

EdmModelExtensions Class
System.Web.OData Namespace

Return to top