Edit

Share via


EntityObject.ReportPropertyChanging(String) Method

Definition

Notifies the change tracker that a property change is pending.

protected:
 override void ReportPropertyChanging(System::String ^ property);
protected override sealed void ReportPropertyChanging (string property);
override this.ReportPropertyChanging : string -> unit
Protected Overrides NotOverridable Sub ReportPropertyChanging (property As String)

Parameters

property
String

The name of the changing property.

Exceptions

property is null.

Remarks

When an entity type is generated by the Entity Data Model tools, the ReportPropertyChanging method is called before a property change to cache the current value of the property in the IEntityChangeTracker so that this value can be used as the original value for the property.

This method calls the EntityMemberChanging method in the change tracker.

Applies to

See also