IEntityWithKey.EntityKey 属性
定义
public:
property System::Data::EntityKey ^ EntityKey { System::Data::EntityKey ^ get(); void set(System::Data::EntityKey ^ value); };
public System.Data.EntityKey EntityKey { get; set; }
member this.EntityKey : System.Data.EntityKey with get, set
Public Property EntityKey As EntityKey
属性值
实现此接口的实体类型实例的 EntityKey。The EntityKey for instances of entity types that implement this interface.
注解
对象服务使用 EntityKey 属性来管理对象上下文中的对象。Object Services uses the EntityKey property to manage objects in the object context.
有关详细信息,请参阅 标识解析、状态管理和更改跟踪 和 跟踪 POCO 实体中的更改。For more information, see Identity Resolution, State Management, and Change Tracking and Tracking Changes in POCO Entities.