Compartilhar via


EntitySetConfiguration<TEntityType>.HasReadLink Method

 

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

Overload List

Name Description
System_CAPS_pubmethod HasReadLink(Func<EntityInstanceContext<TEntityType>, String>, Boolean)

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

System_CAPS_pubmethod HasReadLink(Func<EntityInstanceContext<TEntityType>, Uri>, Boolean)

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

See Also

EntitySetConfiguration<TEntityType> Class
System.Web.Http.OData.Builder Namespace

Return to top

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

Syntax

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 Sub HasReadLink (
    readLinkFactory As Func(Of EntityInstanceContext(Of TEntityType), String),
    followsConventions As Boolean
)

Parameters

  • followsConventions
    Type: System.Boolean

    true if the factory follows OData read link conventions; otherwise, false.

Return to top

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

Syntax

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 Sub HasReadLink (
    readLinkFactory As Func(Of EntityInstanceContext(Of TEntityType), Uri),
    followsConventions As Boolean
)

Parameters

  • followsConventions
    Type: System.Boolean

    true if the factory follows OData read link conventions; otherwise, false.

Return to top