Advice on invoking FieldPropertyChanged event


Author
Message
Michael Reese
Michael Reese
StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
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

StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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.
Chan
Chan
Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

Any way to generate property changed event for selective field only?
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search