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.

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

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