Hi again.
My requeriments is more like Hunter described. I have many scenarios for this, as example:
1.- I have a multilevel net of objects where the cost of an object is the sum of the previous level of objects, in such case i want to make persistent the cost of the object as the sum of your object components to avoid load the full net when i need the cost of a object in top levels. For this, in legacy implementation when a object in low level is saved i recalculate the cost of the parent level as cost += objectchild.cost - objectchild.originalcost.
2.- When i save a purchase order item, i need to CREATE an object to save the stock for the associated product, i need intercept the save of purchase order item an as part of the same transaction create the stock item.
I dont like the save interceptor because i think that the onsaving event should be an "as class" event to encapsulate the logic by each class and not for all class entities. (I have used XPOBJECT ORM by DevExpress and using the Onsaving event in my object to ths business rules)
Do you have another alternative to my requeriments?
thanks.