示例#1
0
        /// <summary>
        /// This method is called whenever a change is made to an EntityObject
        /// property.
        /// </summary>
        /// <param name="property">
        /// The name of the changed property.
        /// </param>
        /// <exception cref="System.ArgumentNullException">
        /// When parameter member is null (Nothing in Visual Basic).
        /// </exception>
        protected sealed override void ReportPropertyChanged(
            string property)
        {
            EntityUtil.CheckStringArgument(property, "property");

            Debug.Assert(EntityChangeTracker != null, "EntityChangeTracker should never return null -- if detached it should be return s_detachedEntityChangeTracker");
            EntityChangeTracker.EntityMemberChanged(property);

            base.ReportPropertyChanged(property);
        }
示例#2
0
        /// <summary>Notifies the change tracker that a property has changed.</summary>
        /// <param name="property">The name of the changed property.</param>
        /// <exception cref="T:System.ArgumentNullException"> property  is null.</exception>
        protected override sealed void ReportPropertyChanged(
            string property)
        {
            Check.NotEmpty(property, "property");

            Debug.Assert(
                EntityChangeTracker != null,
                "EntityChangeTracker should never return null -- if detached it should be return _detachedEntityChangeTracker");
            EntityChangeTracker.EntityMemberChanged(property);

            base.ReportPropertyChanged(property);
        }