// <summary> // This method is called by a ComplexObject contained in this Entity // whenever a change is about to be made to a property of the // ComplexObject so that the change can be forwarded to the change tracker. // </summary> // <param name="entityMemberName"> The name of the top-level entity property that contains the ComplexObject that is calling this method. </param> // <param name="complexObject"> The instance of the ComplexObject on which the property is changing. </param> // <param name="complexMemberName"> The name of the changing property on complexObject. </param> internal override sealed void ReportComplexPropertyChanging( string entityMemberName, ComplexObject complexObject, string complexMemberName) { DebugCheck.NotNull(complexObject); DebugCheck.NotEmpty(complexMemberName); EntityChangeTracker.EntityComplexMemberChanging(entityMemberName, complexObject, complexMemberName); }
/// <summary> /// This method is called by a ComplexObject contained in this Entity /// whenever a change is about to be made to a property of the /// ComplexObject so that the change can be forwarded to the change tracker. /// </summary> /// <param name="entityMemberName"> /// The name of the top-level entity property that contains the ComplexObject that is calling this method. /// </param> /// <param name="complexObject"> /// The instance of the ComplexObject on which the property is changing. /// </param> /// <param name="complexMemberName"> /// The name of the changing property on complexObject. /// </param> internal sealed override void ReportComplexPropertyChanging( string entityMemberName, ComplexObject complexObject, string complexMemberName) { Debug.Assert(complexObject != null, "invalid complexObject"); Debug.Assert(!String.IsNullOrEmpty(complexMemberName), "invalid complexMemberName"); EntityChangeTracker.EntityComplexMemberChanging(entityMemberName, complexObject, complexMemberName); }