/// <summary> /// This method is called whenever a change is going to be made to an EntityObject /// property. /// </summary> /// <param name="property"> /// The name of the changing property. /// </param> /// <exception cref="System.ArgumentNullException"> /// When parameter member is null (Nothing in Visual Basic). /// </exception> protected sealed override void ReportPropertyChanging( string property) { EntityUtil.CheckStringArgument(property, "property"); Debug.Assert(EntityChangeTracker != null, "_entityChangeTracker should never be null -- if detached it should return s_detachedEntityChangeTracker"); base.ReportPropertyChanging(property); EntityChangeTracker.EntityMemberChanging(property); }
/// <summary>Notifies the change tracker that a property change is pending.</summary> /// <param name="property">The name of the changing property.</param> /// <exception cref="T:System.ArgumentNullException"> property is null.</exception> protected override sealed void ReportPropertyChanging( string property) { Check.NotEmpty(property, "property"); Debug.Assert( EntityChangeTracker != null, "_entityChangeTracker should never be null -- if detached it should return _detachedEntityChangeTracker"); base.ReportPropertyChanging(property); EntityChangeTracker.EntityMemberChanging(property); }