C# Entity Framework Basics CRUD Operations Updating Entities

Hakim Rachidi
Hakim Rachidi
35,938 Points

When is an entity tracked by the context?

At which point or time is an entity tracked by it's context in order to change or get it's data?

1 Answer

Steven Parker
Steven Parker
172,127 Points

Entities are tracked by default unless you explicitly ask for them not to be, by adding ".AsNoTracking()" to the query.