ChangeTracker.StateChanged ChangeTracker.StateChanged ChangeTracker.StateChanged Event

Definition

An event fired when an entity that is tracked by the associated DbContext has moved from one EntityState to another.

Note that this event does not fire for entities when they are first tracked by the context. Use the Tracked event to get notified when the context begins tracking an entity.

public event EventHandler<Microsoft.EntityFrameworkCore.ChangeTracking.EntityStateChangedEventArgs> StateChanged;
member this.StateChanged : EventHandler<Microsoft.EntityFrameworkCore.ChangeTracking.EntityStateChangedEventArgs> 
Public Custom Event StateChanged As EventHandler(Of EntityStateChangedEventArgs) 

Applies to