ChangeTracker.CascadeChanges Method


Forces immediate cascading deletion of child/dependent entities when they are either severed from a required parent/principal entity, or the required parent/principal entity is itself deleted. See DeleteBehavior.

This method is usually used when CascadeDeleteTiming and/or DeleteOrphansTiming have been set to Never to manually force the deletes to have at a time controlled by the application.

If AutoDetectChangesEnabled is true then this method will call DetectChanges().

public virtual void CascadeChanges ();
abstract member CascadeChanges : unit -> unit
override this.CascadeChanges : unit -> unit
Public Overridable Sub CascadeChanges ()

Applies to