Print Page | Close Window

OnPropertyChanged version differences

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3152
Printed Date: 13-May-2026 at 1:59pm


Topic: OnPropertyChanged version differences
Posted By: chuckc
Subject: OnPropertyChanged version differences
Date Posted: 12-Dec-2011 at 2:05pm

It appears that the conditions under which OnPropertyChanged() is called have changed somewhere between versions 6.1.2.1 and 6.1.3.1.  

How do I get the OnPropertyChanged() calls to behave as they did in 6.1.2.1?

        public static Person Create(iCatalystEntityManager manager)
        {
            Person person = manager.CreateEntity<Person>();
            person.PersonId = Guid.NewGuid(); 

            person.MaritalStatusId = _defaultMaritalStatusId; // in 6.1.2.1 this would produce an OnPropertyChanged() call; in 6.1.3.1 it does not.

            person.EntityAspect.AddToManager();

            person.IsNewAndUnchanged = true;

            return person;
        } 

   protected override void OnPropertyChanged(PropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);

            // Update properties that need refresh as a side-effect of some other properties changing...               }

 




Replies:
Posted By: DenisK
Date Posted: 13-Dec-2011 at 5:36pm
Hi chuckc;

This appears to be a bug. Let me file a bug report and update you with a workaround as soon as I have one.


Posted By: chuckc
Date Posted: 14-Dec-2011 at 7:37pm
When should I expect a bug fix?  

I'd prefer not to uninstall and re-install DevForce, and roll back the changes I had to make to update to 6.1.3.1, but I will have to if a bug fix is going to take more than a couple days.



Posted By: DenisK
Date Posted: 14-Dec-2011 at 10:06pm
We are going to be releasing a patch for 6.1.4 soon. The fix for this is scheduled to be included in that version.


Posted By: chuckc
Date Posted: 15-Dec-2011 at 5:08am
Is "soon" hours, days or weeks?


Posted By: DenisK
Date Posted: 15-Dec-2011 at 3:27pm
We are aiming to release by end of the week.


Posted By: DenisK
Date Posted: 16-Dec-2011 at 12:28pm
Hi chuckc;

I pm'ed you the link to download 6.1.4.1 patch.


Posted By: GeorgeB
Date Posted: 17-Dec-2011 at 2:25am
Hi Denis
 
When will the rest of us see the patch?
 
Kr
George


Posted By: kimj
Date Posted: 17-Dec-2011 at 10:45am
George, we may push this out to everyone sometime next week, but Denis can give you the download link on Monday.


Posted By: DenisK
Date Posted: 19-Dec-2011 at 11:41am
Hi George;

I just pm'ed you the link.


Posted By: chuckc
Date Posted: 19-Dec-2011 at 11:58am
Thanks!  

Seems to work fine in my initial testing.



Print Page | Close Window