StrataFrame Forum

Advice on invoking FieldPropertyChanged event

http://forum.strataframe.net/Topic6615.aspx

By Michael Reese - 2/7/2007

I was reading the documentation regarding the FieldPropertyChanged event. It states that I must set this up in the BO Mapper. What are the disadvantages if any to turning this on for a BO?

Michael

By StrataFrame Team - 2/7/2007

The disadvantages would be that the business object has to create a field to store off the delegate for the event handlers and test that delegate each time the get/set of the property fires.  You won't notice the speed difference (if you did, .NET wouldn't have events Wink), but if you doing lots of computing insensive tasks on the business object, then one of the first ways to optimize the business object is to remove any extra events.
By Chan - 2/16/2007

Hi,

Any way to generate property changed event for selective field only?
By Trent L. Taylor - 2/17/2007

Yes, use the single event for all properties and then test within the event on that single property.  This way only a single event is created and then you can just test for that single field within the event.