共用方式為


CoreLoggerExtensions.CascadeDeleteOrphanSensitive 方法

定義

CascadeDeleteOrphan事件的記錄。

public static void CascadeDeleteOrphanSensitive (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> diagnostics, Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry internalChildEntry, Microsoft.EntityFrameworkCore.Metadata.IEntityType parentEntityType, Microsoft.EntityFrameworkCore.EntityState state);
static member CascadeDeleteOrphanSensitive : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> * Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.EntityState -> unit
<Extension()>
Public Sub CascadeDeleteOrphanSensitive (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Update), internalChildEntry As InternalEntityEntry, parentEntityType As IEntityType, state As EntityState)

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Update>

要使用的診斷記錄器。

internalChildEntry
Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry

子內部實體專案。

parentEntityType
IEntityType

父實體類型。

state
EntityState

目標狀態。

適用於