IEntityWithChangeTracker Interface


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Defines an entity type that implements change tracking.

Namespace:   System.Data.Objects.DataClasses
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public interface IEntityWithChangeTracker


Gets or sets the IEntityChangeTracker used to report changes.

An entity type must implement IEntityWithChangeTracker to track changes. EntityObject is the base class for all entity types that are generated by the Entity Data Model tools. EntityObject implements IEntityWithChangeTracker.

Object Services provides objects with a reference to an instance of the IEntityChangeTracker interface to enable objects to report changes. Methods on the IEntityChangeTracker are used to report changes.

For more information, see Identity Resolution, State Management, and Change Tracking and Tracking Changes in POCO Entities.

.NET Framework
Available since 3.5
Return to top