EntityReference.EntityKey Propriedade

Definição

Devolve a chave para o objeto relacionado.

public:
 property System::Data::EntityKey ^ EntityKey { System::Data::EntityKey ^ get(); void set(System::Data::EntityKey ^ value); };
[System.Runtime.Serialization.DataMember]
public System.Data.EntityKey EntityKey { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.EntityKey : System.Data.EntityKey with get, set
Public Property EntityKey As EntityKey

Valor de Propriedade

E EntityKey essa é a chave do objeto relacionado.

Atributos

Observações

Ter a chave de entidade do objeto relacionado disponível no EntityReference objeto facilita o retorno de informação sobre o objeto relacionado sem ter de a carregar a partir da fonte de dados.

Expor o EntityKey objeto relacionado no EntityReference objeto também permite que o Serviço de Objetos crie dinamicamente uma associação entre dois objetos anexados e elimine um objeto sem ter de carregar as extremidades relacionadas. Para mais informações, veja Criar, Adicionar, Modificar e Eliminar Objetos.

Aplica-se a