CascadeDeleteConvention Class

Definition

A convention that sets the delete behavior to Cascade for required foreign keys and ClientSetNull for optional ones.

C#‎
public class CascadeDeleteConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRequirednessChangedConvention
Inheritance
CascadeDeleteConvention
Derived
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

Properties

Dependencies

Dependencies for this service.

Methods

Applies to

מוצר גירסאות
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0