EntityObject.IEntityWithChangeTracker.SetChangeTracker Method

Definition

Specifies the instance of IEntityChangeTracker that is used to report property changes.

 virtual void System.Data.Objects.DataClasses.IEntityWithChangeTracker.SetChangeTracker(System::Data::Objects::DataClasses::IEntityChangeTracker ^ changeTracker) = System::Data::Objects::DataClasses::IEntityWithChangeTracker::SetChangeTracker;
void IEntityWithChangeTracker.SetChangeTracker (System.Data.Objects.DataClasses.IEntityChangeTracker changeTracker);
abstract member System.Data.Objects.DataClasses.IEntityWithChangeTracker.SetChangeTracker : System.Data.Objects.DataClasses.IEntityChangeTracker -> unit
override this.System.Data.Objects.DataClasses.IEntityWithChangeTracker.SetChangeTracker : System.Data.Objects.DataClasses.IEntityChangeTracker -> unit
Sub SetChangeTracker (changeTracker As IEntityChangeTracker) Implements IEntityWithChangeTracker.SetChangeTracker

Parameters

changeTracker
IEntityChangeTracker

Reference to the change tracker that is used to report property changes.

Implements

Remarks

This method is called by Object Services to specify the instance of IEntityChangeTracker for the object to use to track changes. This is typically called when the entity is added to or removed from an ObjectContext.

Applies to

See also