Compartilhar via


CascadeTiming Enum

Definition

Defines different strategies for when cascading actions will be performed. See CascadeDeleteTiming and DeleteOrphansTiming.

public enum CascadeTiming
type CascadeTiming = 
Public Enum CascadeTiming
Inheritance
CascadeTiming

Fields

Name Value Description
Immediate 0

Cascading actions are made to dependent/child entities as soon as the principal/parent entity changes.

OnSaveChanges 1

Cascading actions are made to dependent/child entities as part of SaveChanges().

Never 2

Cascading actions are never made automatically to dependent/child entities, but must instead be triggered by an explicit call.

Remarks

See EF Core cascade deletes and deleting orphans for more information and examples.

Applies to