The entity lifecycle
During its lifetime, an entity has a state. Before
looking at how to retrieve entity state, let’s take a look at what
entity state is. The state is an enum of type System.Data.EntityState that declares the following values:
- Added—The entity is marked as added.
- Deleted—The entity is marked as deleted.
- Modified—The entity has been modified.
- Unchanged—The entity hasn’t been modified.
- Detached—The entity isn’t tracked.

0 comments:
Post a Comment