IUpdateAdapter.CascadeDelete 方法

定义

当子/依赖实体从所需的父/主体实体中分离,或者所需的父/主体实体本身被删除时,强制立即级联删除子/依赖实体。 请参阅 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)

参数

entry
IUpdateEntry

项。

foreignKeys
IEnumerable<IForeignKey>

级联时要考虑的外键。

适用于