Compartilhar via


NavigationSourceConfiguration<TEntityType>.HasReadLink Método

Definição

Configura o link de leitura para as entidades desta fonte de navegação.

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)

Parâmetros

readLinkFactory
Func<ResourceContext<TEntityType>,Uri>

A fábrica usada para gerar o link de leitura.

followsConventions
Boolean

true se a fábrica seguir as convenções de link de leitura OData; caso contrário, false.

Aplica-se a