Share via


IUpdateAdapter.CascadeDelete Method

Definition

Forces immediate cascading deletion of child/dependent entities when they are either severed from a required parent/principal entity, or the required parent/principal entity is itself deleted. See DeleteBehavior.

public void CascadeDelete (Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> foreignKeys = default);
public void CascadeDelete (Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>? foreignKeys = default);
abstract member CascadeDelete : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> -> unit
Public Sub CascadeDelete (entry As IUpdateEntry, Optional foreignKeys As IEnumerable(Of IForeignKey) = Nothing)

Parameters

entry
IUpdateEntry

The entry.

foreignKeys
IEnumerable<IForeignKey>

The foreign keys to consider when cascading.

Applies to