Share via


EntitySetConfiguration<TEntityType>.HasReadLink Method (Func<EntityInstanceContext<TEntityType>, Uri>, 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), Uri), _
    followsConventions As Boolean _
)
'Usage
Dim instance As EntitySetConfiguration 
Dim readLinkFactory As Func(Of EntityInstanceContext(Of TEntityType), Uri)
Dim followsConventions As Boolean

instance.HasReadLink(readLinkFactory, _
    followsConventions)
public void HasReadLink(
    Func<EntityInstanceContext<TEntityType>, Uri> readLinkFactory,
    bool followsConventions
)
public:
void HasReadLink(
    Func<EntityInstanceContext<TEntityType>^, Uri^>^ readLinkFactory, 
    bool followsConventions
)
member HasReadLink : 
        readLinkFactory:Func<EntityInstanceContext<'TEntityType>, Uri> * 
        followsConventions:bool -> unit
public function HasReadLink(
    readLinkFactory : Func<EntityInstanceContext<TEntityType>, Uri>, 
    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