Benefits of virtual properties and mapping methods
Posted: Fri Aug 07, 2009 12:33 pm
by Marcelle Goslin >> Tue, 30 Mar 2004 0:01:11 GMT
Hi All
Could anyone please outline any disadvantages to using virtual properties and mapping methods?
I have a situation where we are required to use business rules using a huge number of properties to classify our main business object into several classification buckets.
It seems an elegant solution to define a virtual property with a "get" mapping method per classification.
1) We don't have to keep calling an updating method to explicilty reset a non-virtual property every time one of the above mentioned properties changes (or sledgehammer approach, re-evaluate all classifications every time the BO is updated)
2) The business rules are precisely defined in the model without a lot of surrounding conditional logic
Would there be significant performance issues/overheads?
Most of our application is GUI, with limited batch
Thanks
Marcelle
Hi All
Could anyone please outline any disadvantages to using virtual properties and mapping methods?
I have a situation where we are required to use business rules using a huge number of properties to classify our main business object into several classification buckets.
It seems an elegant solution to define a virtual property with a "get" mapping method per classification.
1) We don't have to keep calling an updating method to explicilty reset a non-virtual property every time one of the above mentioned properties changes (or sledgehammer approach, re-evaluate all classifications every time the BO is updated)
2) The business rules are precisely defined in the model without a lot of surrounding conditional logic
Would there be significant performance issues/overheads?
Most of our application is GUI, with limited batch
Thanks
Marcelle