ChangeTracker.DeleteOrphansTiming Property

Definition

Gets or sets a value indicating when a dependent/child entity will have its state set to Deleted once severed from a parent/principal entity through either a navigation or foreign key property being set to null. The default value is Immediate.

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 DeleteOrphansTiming { get; set; }
member this.DeleteOrphansTiming : Microsoft.EntityFrameworkCore.ChangeTracking.CascadeTiming with get, set
Public Overridable Property DeleteOrphansTiming As CascadeTiming

Property Value

CascadeTiming

Applies to