Share via


ChangeTracker.CascadeDeleteTiming Property

Definition

Gets or sets a value indicating when a dependent/child entity will have its state set to Deleted once its parent/principal entity has been marked as Deleted. The default value isImmediate.

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.CascadeTiming CascadeDeleteTiming { get; set; }
member this.CascadeDeleteTiming : Microsoft.EntityFrameworkCore.ChangeTracking.CascadeTiming with get, set
Public Overridable Property CascadeDeleteTiming As CascadeTiming

Property Value

Remarks

Dependent/child entities are only deleted automatically when the relationship is configured with Cascade. This is set by default for required relationships.

See EF Core change tracking for more information and examples.

Applies to