DbChangeTracker.DetectChanges Method

Definition

Detects changes made to the properties and relationships of POCO entities. Note that some types of entity (such as change tracking proxies and entities that derive from EntityObject) report changes automatically and a call to DetectChanges is not normally needed for these types of entities. Also note that normally DetectChanges is called automatically by many of the methods of DbContext and its related classes such that it is rare that this method will need to be called explicitly. However, it may be desirable, usually for performance reasons, to turn off this automatic calling of DetectChanges using the AutoDetectChangesEnabled flag from Configuration.

public void DetectChanges ();
member this.DetectChanges : unit -> unit
Public Sub DetectChanges ()

Applies to