Share via


EntityTrackingEventArgs Class

Definition

Event arguments for the Tracking event.

public class EntityTrackingEventArgs : Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryEventArgs
type EntityTrackingEventArgs = class
    inherit EntityEntryEventArgs
Public Class EntityTrackingEventArgs
Inherits EntityEntryEventArgs
Inheritance
EntityTrackingEventArgs

Remarks

See State changes of entities in EF Core for more information and examples.

Constructors

EntityTrackingEventArgs(InternalEntityEntry, EntityState, Boolean)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Properties

Entry

The EntityEntry for the entity.

(Inherited from EntityEntryEventArgs)
FromQuery

true if the entity is being tracked as part of a database query; false otherwise.

State

The EntityState that the tracked entity will be tracked with.

Applies to