EntityObject.EntityState EntityObject.EntityState EntityObject.EntityState EntityObject.EntityState Property

Definition

Gets the entity state of the object.

public:
 property System::Data::EntityState EntityState { System::Data::EntityState get(); };
[System.ComponentModel.Browsable(false)]
public System.Data.EntityState EntityState { get; }
member this.EntityState : System.Data.EntityState
Public ReadOnly Property EntityState As EntityState

Property Value

Remarks

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.

Applies to

See also