DbContext.SavedChanges Event

Definition

An event fired at the end of a call to SaveChanges or SaveChangesAsync

C#
public event EventHandler<Microsoft.EntityFrameworkCore.SavedChangesEventArgs> SavedChanges;
C#
public event EventHandler<Microsoft.EntityFrameworkCore.SavedChangesEventArgs>? SavedChanges;

Event Type

Remarks

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

Applies to

Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0