Compartilhar via


EdmModelExtensions.GetEntitySetLinkBuilder Method (IEdmModel, IEdmEntitySet)

 

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

public static EntitySetLinkBuilderAnnotation GetEntitySetLinkBuilder(
    this IEdmModel model,
    IEdmEntitySet entitySet
)
public:
[ExtensionAttribute]
static EntitySetLinkBuilderAnnotation^ GetEntitySetLinkBuilder(
    IEdmModel^ model,
    IEdmEntitySet^ entitySet
)
static member GetEntitySetLinkBuilder : 
        model:IEdmModel *
        entitySet:IEdmEntitySet -> EntitySetLinkBuilderAnnotation
<ExtensionAttribute>
Public Shared Function GetEntitySetLinkBuilder (
    model As IEdmModel,
    entitySet As IEdmEntitySet
) As EntitySetLinkBuilderAnnotation

Parameters

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.

See Also

EdmModelExtensions Class
System.Web.Http.OData Namespace

Return to top