Share via


EntitySetConfiguration<TEntityType>.HasEditLink Method (Func<EntityInstanceContext<TEntityType>, Uri>, Boolean)

Configures the edit link for the entities from this entity set.

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

Syntax

'Declaration
Public Sub HasEditLink ( _
    editLinkFactory As Func(Of EntityInstanceContext(Of TEntityType), Uri), _
    followsConventions As Boolean _
)
'Usage
Dim instance As EntitySetConfiguration 
Dim editLinkFactory As Func(Of EntityInstanceContext(Of TEntityType), Uri)
Dim followsConventions As Boolean

instance.HasEditLink(editLinkFactory, _
    followsConventions)
public void HasEditLink(
    Func<EntityInstanceContext<TEntityType>, Uri> editLinkFactory,
    bool followsConventions
)
public:
void HasEditLink(
    Func<EntityInstanceContext<TEntityType>^, Uri^>^ editLinkFactory, 
    bool followsConventions
)
member HasEditLink : 
        editLinkFactory:Func<EntityInstanceContext<'TEntityType>, Uri> * 
        followsConventions:bool -> unit
public function HasEditLink(
    editLinkFactory : Func<EntityInstanceContext<TEntityType>, Uri>, 
    followsConventions : boolean
)

Parameters

  • followsConventions
    Type: System.Boolean
    true to indicate that the factory follows OData edit link conventions; otherwise, false.

See Also

Reference

EntitySetConfiguration<TEntityType> Class

HasEditLink Overload

System.Web.Http.OData.Builder Namespace