AsNoTracking

An EF Core query method that returns entities without tracking them, for results you will only read.

In more detail

EF Core normally tracks every entity it loads so it can detect changes later. It saves memory and time on reads, but an untracked entity is not updated by changing a property and calling SaveChanges.

Related terms

Taught in

References