Share via


EntitySetConfiguration<TEntityType>.HasReadLink Method (Func<EntityInstanceContext<TEntityType>, String>, Boolean)

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

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

Parameters

  • followsConventions
    Type: System.Boolean
    Represents a value indicating whether the factory follows OData conventions or not.

See Also

Reference

EntitySetConfiguration<TEntityType> Class

HasReadLink Overload

System.Web.Http.OData.Builder Namespace