Entity Framework Question:

Explain Entity Lifecycle?

ADO.Net Entity Framework Interview Question
ADO.Net Entity Framework Interview Question

Answer:

During entity’s lifetime, each entity has an entity state based on operation performed on it via Context (ObjectContext). The entity state is an enum of type System.Data.EntityState that declares the following values:


Added
Deleted
Modified
Unchanged
Detached


Previous QuestionNext Question
What is Model First?What is Connected Scenario?