共用方式為


SaveChangesEventData 建構函式

定義

建構事件承載。

public SaveChangesEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries, int rowsAffected);
new Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * seq<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> * int -> Microsoft.EntityFrameworkCore.Diagnostics.SaveChangesEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), entries As IEnumerable(Of IUpdateEntry), rowsAffected As Integer)

參數

eventDefinition
EventDefinitionBase

事件定義。

messageGenerator
Func<EventDefinitionBase,EventData,String>

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

entries
IEnumerable<IUpdateEntry>

正在儲存之實體的專案。

rowsAffected
Int32

受影響的資料列。

適用於