ChangeTracker.Tracked Event

Definition

An event fired when an entity is tracked by the context, either because it was returned from a tracking query, or because it was attached or added to the context.

C#
public event EventHandler<Microsoft.EntityFrameworkCore.ChangeTracking.EntityTrackedEventArgs> Tracked;

Event Type

Remarks

See EF Core change tracking for more information and examples.

Applies to

Product Versions
Entity Framework Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0