How to Ignore Entity Changes
-
By default, each session tracks the changes made to all entities it has either stored, loaded, or queried for.
All changes are then persisted whenSaveChanges
is called. -
Entity changes can be ignored for the
SaveChanges
by disabling entity tracking. -
Tracking can be disabled by any of the following: