Share via


EdmModelExtensions.GetEntitySetLinkBuilder Method

Gets the EntitySetLinkBuilderAnnotation to be used while generating self and navigation links for the given entity set.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetEntitySetLinkBuilder ( _
    model As IEdmModel, _
    entitySet As IEdmEntitySet _
) As EntitySetLinkBuilderAnnotation
'Usage
Dim model As IEdmModel 
Dim entitySet As IEdmEntitySet 
Dim returnValue As EntitySetLinkBuilderAnnotation 

returnValue = model.GetEntitySetLinkBuilder(entitySet)
public static EntitySetLinkBuilderAnnotation GetEntitySetLinkBuilder(
    this IEdmModel model,
    IEdmEntitySet entitySet
)
[ExtensionAttribute]
public:
static EntitySetLinkBuilderAnnotation^ GetEntitySetLinkBuilder(
    IEdmModel^ model, 
    IEdmEntitySet^ entitySet
)
static member GetEntitySetLinkBuilder : 
        model:IEdmModel * 
        entitySet:IEdmEntitySet -> EntitySetLinkBuilderAnnotation
public static function GetEntitySetLinkBuilder(
    model : IEdmModel, 
    entitySet : IEdmEntitySet
) : EntitySetLinkBuilderAnnotation

Parameters

  • model
    Type: IEdmModel
    The IEdmModel containing the entity set.
  • entitySet
    Type: IEdmEntitySet
    The entity set.

Return Value

Type: System.Web.Http.OData.Builder.EntitySetLinkBuilderAnnotation
The EntitySetLinkBuilderAnnotation if set for the given the entity set; otherwise, a new EntitySetLinkBuilderAnnotation that generates URLs that follow OData URL conventions.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).

See Also

Reference

EdmModelExtensions Class

System.Web.Http.OData Namespace