CascadeTiming Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework