Business Rule in parent object that needs property value from child #3124
Unanswered
Chicagoan2016
asked this question in
Questions
Replies: 1 comment 4 replies
-
I would not do that. I'd cast Remember that all child objects do have a The drawback to this is that the rule becomes tightly coupled with the shape of the object graph, but for "non-trivial" rules this is often unavoidable. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have to implement a business rule in parent object that needs properties' values from both parent and one of the child objects. Should we duplicate the child's properties (the ones needed by the business rule) in the parent object?
Regards
Beta Was this translation helpful? Give feedback.
All reactions