IEntityWithKey.EntityKey 属性

定义

为实现此接口的实体类型的实例获取或设置 EntityKeyGets or sets the EntityKey for instances of entity types that implement this interface.

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

实现此接口的实体类型实例的 EntityKeyThe 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.

适用于