Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Multiple Dependent Property Updates

$
0
0

I've the following properties: Date1, Date2

Any time one of those two properties changes they are compared and the Difference property is updated where Difference is the number of business days between the two dates.  If Difference changes that value is used in calculations where other properties on the object are recalculated.

So what I have is a series of calculated fields that cascade if a root value is changed.

Any recommendations on how to handle this scenario?


Viewing all articles
Browse latest Browse all 764

Trending Articles