-
Hello. We are using CSLA in our project. We have a few business objects that work, but in each we have problems when it comes to dependency of calculated properties: calculations that depend on another calculated property do not fire. Let's say we have this simple example:
Findings:
Where is the problem? Details are in attached solution (DependentRulesProblem.zip). Thanks much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The default behavior of business rules is to not cascade property changes. This is a safeguard to avoid unexpected infinite loops. To enable the desired behavior, add this line to the class constructor: |
Beta Was this translation helpful? Give feedback.
The default behavior of business rules is to not cascade property changes. This is a safeguard to avoid unexpected infinite loops.
To enable the desired behavior, add this line to the class constructor:
BusinessRules.CascadeOnDirtyProperties = true;