EntityReference.EntityKey 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回相关对象的键。
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 相关对象还使对象服务能够在两个附加对象之间动态创建关联,并删除对象,而无需加载相关结束。 有关详细信息,请参阅 创建、添加、修改和删除对象。