SavingChangesEventArgs 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
SavingChanges 事件的事件引數。
public class SavingChangesEventArgs : Microsoft.EntityFrameworkCore.SaveChangesEventArgs
type SavingChangesEventArgs = class
inherit SaveChangesEventArgs
Public Class SavingChangesEventArgs
Inherits SaveChangesEventArgs
- 繼承
備註
更多資訊與範例請參閱「 在 EF Core 儲存資料 」及「EF Core 事件 」。
建構函式
| 名稱 | Description |
|---|---|
| SavingChangesEventArgs(Boolean) |
為該事件建立事件 DbContext.SavingChanges 參數。 |
屬性
| 名稱 | Description |
|---|---|
| AcceptAllChangesOnSuccess |
該值傳遞至 DbContext.SaveChanges 或 DbContext.SaveChangesAsync。 (繼承來源 SaveChangesEventArgs) |