Share via


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)

适用于