Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

DbEntityEntry<TEntity>.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().

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.