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: