Share via


NavigationSourceConfiguration<TEntityType>.HasReadLink Method

Definition

Configures the read link for the entities from this navigation source.

public void HasReadLink (Func<Microsoft.AspNet.OData.ResourceContext<TEntityType>,Uri> readLinkFactory, bool followsConventions);
member this.HasReadLink : Func<Microsoft.AspNet.OData.ResourceContext<'EntityType>, Uri> * bool -> unit
Public Sub HasReadLink (readLinkFactory As Func(Of ResourceContext(Of TEntityType), Uri), followsConventions As Boolean)

Parameters

readLinkFactory
Func<ResourceContext<TEntityType>,Uri>

The factory used to generate the read link.

followsConventions
Boolean

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

Applies to