SavedChangesEventArgs(Boolean, Int32) 建構函式

定義

使用儲存的指定實體數目,建立新的 SavedChangesEventArgs 實例。

public SavedChangesEventArgs (bool acceptAllChangesOnSuccess, int entitiesSavedCount);
new Microsoft.EntityFrameworkCore.SavedChangesEventArgs : bool * int -> Microsoft.EntityFrameworkCore.SavedChangesEventArgs
Public Sub New (acceptAllChangesOnSuccess As Boolean, entitiesSavedCount As Integer)

參數

acceptAllChangesOnSuccess
Boolean

傳遞至 SaveChanges 的值。

entitiesSavedCount
Int32

儲存的實體數目。

適用於