C# Entity Framework Basics CRUD Operations Updating Entities

Hakim Rachidi
Hakim Rachidi
38,483 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
176,807 Points

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