Entity Framework Question:

Explain Entity Lifecycle?

Tweet Share WhatsApp

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

Download ADO.Net Entity Framework PDF Read All 28 ADO.Net Entity Framework Questions
Previous QuestionNext Question
What is Model First?What is Connected Scenario?