Option for context.AddOutValue() to not flag an object as dirty. #4247
Unanswered
lwmorris067
asked this question in
Ideas
Replies: 1 comment 2 replies
-
Hi. I think you want something like #4201 , right? That will load the value immediatly but without any rule/property changed triggers |
Beta Was this translation helpful? Give feedback.
2 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.
-
Let's say you have a business object with DateOfBirth and Age. After you fetch the business object from the db and load the DateOfBirth property, you do a BusinessRules.CheckRules to run the AgeRule. Well, now the business object is dirty. I have to manually add a MarkClean() before I leave the Fetch method.
It would be nice to have the equivalent of a SetProperty and LoadProperty within the business rule. Maybe context.SetOutValue and context.LoadOutValue.
I hope that all made sense.
Beta Was this translation helpful? Give feedback.
All reactions