SavingChangesEventArgs 類別

定義

SavingChanges 事件的事件引數。

public class SavingChangesEventArgs : Microsoft.EntityFrameworkCore.SaveChangesEventArgs
type SavingChangesEventArgs = class
    inherit SaveChangesEventArgs
Public Class SavingChangesEventArgs
Inherits SaveChangesEventArgs
繼承
SavingChangesEventArgs

備註

如需詳細資訊和範例,請參閱在 EF Core 和EF Core 事件中儲存資料

建構函式

SavingChangesEventArgs(Boolean)

建立事件的事件引數 DbContext.SavingChanges

屬性

AcceptAllChangesOnSuccess

傳遞至 DbContext.SaveChangesDbContext.SaveChangesAsync 的值。

(繼承來源 SaveChangesEventArgs)

適用於