EntityReference.EntityKey 屬性

定義

回傳相關物件的金鑰。

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

屬性值

EntityKey 是相關物件的鑰匙。

屬性

備註

在物件上有相關物件 EntityReference 的實體鍵,能更容易回傳相關物件的資訊,而不必從資料來源載入。

在物件上暴露 EntityKey 相關物件 EntityReference 也使物件服務能動態建立兩個附加物件的關聯,並在不載入相關端點的情況下刪除物件。 更多資訊請參見「 建立、新增、修改與刪除物件」。

適用於