語言

SavingChangesEventArgs 類別

定義

SavingChanges 事件的事件引數。

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

備註

更多資訊與範例請參閱「 在 EF Core 儲存資料 」及「EF Core 事件 」。

建構函式

名稱 Description
SavingChangesEventArgs(Boolean)

為該事件建立事件 DbContext.SavingChanges 參數。

屬性

名稱 Description
AcceptAllChangesOnSuccess

該值傳遞至 DbContext.SaveChanges 或 DbContext.SaveChangesAsync。

(繼承來源 SaveChangesEventArgs)

適用於