src/Shared/EntityFramework/Core/Objects/DataClasses/ComplexObject.cs
// <summary>
// This method is used to report all changes on this ComplexObject to its parent entity or ComplexObject
// </summary>
// <param name="entityMemberName"> Should be null in this method override. This is only relevant in Entity's implementation of this method, so it is unused here Instead of passing the most-derived property name up the hierarchy, we will always pass the current _parentPropertyName Once this gets up to the Entity, it will actually use the value that was passed in. </param>
// <param name="complexObject"> The instance of the object on which the property is changing. </param>
// <param name="complexMemberName"> The name of the changing property on complexObject. </param>
This method is used to report all changes on this ComplexObject to its parent entity or ComplexObject
This method is used to report all changes on this ComplexObject to its parent entity or ComplexObject
internal override sealed void ReportComplexPropertyChanged(
            string entityMemberName, ComplexObject complexObject, string complexMemberName)
        {
            DebugCheck.NotNull(complexObject);
            DebugCheck.NotEmpty(complexMemberName);
            if (null != _parent)
            {
                _parent.ReportComplexPropertyChanged(_parentPropertyName, complexObject, complexMemberName);
            }
        }
internal override sealed void ReportComplexPropertyChanged ( string entityMemberName , ComplexObject complexObject , string complexMemberName ) { DebugCheck . NotNull ( complexObject ) ; DebugCheck . NotEmpty ( complexMemberName ) ; if ( null != _parent ) { _parent . ReportComplexPropertyChanged ( _parentPropertyName , complexObject , complexMemberName ) ; } }
This method is used to report all changes on this ComplexObject to its parent entity or ComplexObject
This method is used to report all changes on this ComplexObject to its parent entity or ComplexObject
// entityMemberName is unused here because we just keep passing the current parent name up the hierarchy // This value is only used in the EntityObject override of this method
entityMemberName
string
Should be null in this method override. This is only relevant in Entity's implementation of this method, so it is unused here Instead of passing the most-derived property name up the hierarchy, we will always pass the current _parentPropertyName Once this gets up to the Entity, it will actually use the value that was passed in.
Should be null in this method override . This is only relevant in Entity ' s implementation of this method so it is unused here Instead of passing the most - derived property name up the hierarchy we will always pass the current _parentPropertyName Once this gets up to the Entity it will actually use the value that was passed in .
complexObject
ComplexObject
The instance of the object on which the property is changing.
The instance of the object on which the property is changing .
complexMemberName
string
The name of the changing property on complexObject.
The name of the changing property on complexObject .