ChangeTracker.Tracking Event

Definition

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

C#
public event EventHandler<Microsoft.EntityFrameworkCore.ChangeTracking.EntityTrackingEventArgs> Tracking;

Event Type

Remarks

See EF Core change tracking for more information and examples.

Applies to

Product Versions
Entity Framework Core 7.0, 8.0, 9.0