EntityObject::EntityKey Property

 

Gets or sets the key for this object.

Namespace:   System.Data.Objects.DataClasses
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public:
[BrowsableAttribute(false)]
[DataMemberAttribute]
property EntityKey^ EntityKey {
	virtual EntityKey^ get() sealed;
	virtual void set(EntityKey^ value) sealed;
}

Property Value

Type: System.Data::EntityKey^

The EntityKey for this object.

Object Services uses the EntityKey property to manage objects in the object context.

You cannot set the EntityKey property after an object is attached to an ObjectContext.

.NET Framework
Available since 3.5
Return to top
Show: