Write-Only Property or something else? #3247
Unanswered
Chicagoan2016
asked this question in
Questions
Replies: 1 comment 4 replies
-
Something like having a Person class with an Address collection... a rule to make sure you don't have duplicate addresses? Or something like Invoice with line items. Invoice having a Total property that must be under a certain amount? |
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.
-
I think this is the second time we hit a point in one of our existing projects where our parent object needs to run a rule based on a property in a child object.
We don't need (to persist) that property in the parent object other than to run a validation rule in the parent object. Perhaps our initial object design was wrong : ).
Is there a way we could accomplish this other than a 'dummy' write-only property in the parent object?
Kind Regards
Beta Was this translation helpful? Give feedback.
All reactions