Export (0) Print
Expand All

DbEntityEntry.State Property

Entity Framework 5.0

Gets or sets the state of the entity.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public EntityState State { get; set; }

Property Value

Type: System.Data.EntityState
The state.

Calling State on an entity in the Detached state will call DetectChanges().

Show:
© 2014 Microsoft