共用方式為


CascadeDeleteOrphanEventData 建構函式

定義

建構事件承載。

public CascadeDeleteOrphanEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry entityEntry, Microsoft.EntityFrameworkCore.Metadata.IEntityType parentEntityTypes, Microsoft.EntityFrameworkCore.EntityState state);
new Microsoft.EntityFrameworkCore.Diagnostics.CascadeDeleteOrphanEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.EntityState -> Microsoft.EntityFrameworkCore.Diagnostics.CascadeDeleteOrphanEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), entityEntry As EntityEntry, parentEntityTypes As IEntityType, state As EntityState)

參數

eventDefinition
EventDefinitionBase

事件定義。

messageGenerator
Func<EventDefinitionBase,EventData,String>

產生此事件記錄訊息的委派。

entityEntry
EntityEntry

正在刪除之實體的實體專案。

parentEntityTypes
IEntityType

中斷關聯性的實體類型。

state
EntityState

子系轉換成的狀態,通常是「已刪除」。

適用於