Table of Contents

Class SaveChangesEventArgs

Namespace
Microsoft.EntityFrameworkCore
Assembly
Microsoft.EntityFrameworkCore.dll

Base event arguments for the and events.

public abstract class SaveChangesEventArgs : EventArgs
Inheritance
SaveChangesEventArgs
Derived
Inherited Members

Remarks

See Saving data in EF Core and EF Core events for more information and examples.

Constructors

SaveChangesEventArgs(bool)

Creates a base event arguments instance for or events.

protected SaveChangesEventArgs(bool acceptAllChangesOnSuccess)

Parameters

acceptAllChangesOnSuccess bool

The value passed to SaveChanges.

Properties

AcceptAllChangesOnSuccess

The value passed to or .

public virtual bool AcceptAllChangesOnSuccess { get; }

Property Value

bool