Table of Contents

Class SavedChangesEventArgs

Namespace
Microsoft.EntityFrameworkCore
Assembly
Microsoft.EntityFrameworkCore.dll

Event arguments for the SavedChanges event.

public class SavedChangesEventArgs : SaveChangesEventArgs
Inheritance
SavedChangesEventArgs
Inherited Members

Remarks

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

Constructors

SavedChangesEventArgs(bool, int)

Creates a new SavedChangesEventArgs instance with the given number of entities saved.

public SavedChangesEventArgs(bool acceptAllChangesOnSuccess, int entitiesSavedCount)

Parameters

acceptAllChangesOnSuccess bool

The value passed to SaveChanges.

entitiesSavedCount int

The number of entities saved.

Properties

EntitiesSavedCount

The number of entities saved.

public virtual int EntitiesSavedCount { get; }

Property Value

int