DbContext.SavedChanges Event

Definition

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

public event EventHandler<Microsoft.EntityFrameworkCore.SavedChangesEventArgs> SavedChanges;
public event EventHandler<Microsoft.EntityFrameworkCore.SavedChangesEventArgs>? SavedChanges;
member this.SavedChanges : EventHandler<Microsoft.EntityFrameworkCore.SavedChangesEventArgs> 
Public Event SavedChanges As EventHandler(Of SavedChangesEventArgs) 

Event Type

Remarks

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

Applies to