Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

EntityObject.EntityState Property

Gets the entity state of the object.

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

[BrowsableAttribute(false)]
public EntityState EntityState { get; }

Property Value

Type: System.Data.EntityState
The EntityState of this object.

When an object is attached to the object context, either as the result of a query or by calling Attach, the EntityState becomes Unchanged.

When an object is detached from the object context, it returns to the Detached state.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft