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 | |
---|---|---|
HasReadLink(Func<EntityInstanceContext<TEntityType>, String>, Boolean) | Configures the read link for the entities from this entity set. |
|
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
EntitySetConfiguration<TEntityType>.HasReadLink Method (Func<EntityInstanceContext<TEntityType>, String>, Boolean)
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
readLinkFactory
Type: System.Func<EntityInstanceContext<TEntityType>, String>The factory used to generate the read link.
followsConventions
Type: System.Booleantrue if the factory follows OData read link conventions; otherwise, false.
Return to top
EntitySetConfiguration<TEntityType>.HasReadLink Method (Func<EntityInstanceContext<TEntityType>, Uri>, Boolean)
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
readLinkFactory
Type: System.Func<EntityInstanceContext<TEntityType>, Uri>The factory used to generate the read link.
followsConventions
Type: System.Booleantrue if the factory follows OData read link conventions; otherwise, false.
Return to top