Share via


EntitySetConfiguration<TEntityType>.HasIdLink Method

Configures the ID 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 HasIdLink ( _
    idLinkFactory As Func(Of EntityInstanceContext(Of TEntityType), String), _
    followsConventions As Boolean _
)
'Usage
Dim instance As EntitySetConfiguration 
Dim idLinkFactory As Func(Of EntityInstanceContext(Of TEntityType), String)
Dim followsConventions As Boolean

instance.HasIdLink(idLinkFactory, followsConventions)
public void HasIdLink(
    Func<EntityInstanceContext<TEntityType>, string> idLinkFactory,
    bool followsConventions
)
public:
void HasIdLink(
    Func<EntityInstanceContext<TEntityType>^, String^>^ idLinkFactory, 
    bool followsConventions
)
member HasIdLink : 
        idLinkFactory:Func<EntityInstanceContext<'TEntityType>, string> * 
        followsConventions:bool -> unit
public function HasIdLink(
    idLinkFactory : Func<EntityInstanceContext<TEntityType>, String>, 
    followsConventions : boolean
)

Parameters

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

See Also

Reference

EntitySetConfiguration<TEntityType> Class

System.Web.Http.OData.Builder Namespace