ChangeTracker.CascadeDeleteTiming Property


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.

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

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


Applies to