GetFirstBrokenRule when we have an object graph #3355
Unanswered
Chicagoan2016
asked this question in
Questions
Replies: 1 comment 1 reply
-
What do you mean by "first"? First rule for each object, or for each property, or for the whole graph? |
Beta Was this translation helpful? Give feedback.
1 reply
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 a parent object with several 'child' objects. We would like to show the 'first' broken rules for the whole object.
For single objects, it was easy we used 'GetRegisteredProperties()' to get the list of all properties and then iterate the broken rules collections, essentially our code looked like this
In an object graph, we get the list of 'BrokenRulesNode' objects. But each BrokenRulesNode object has a generic 'Object' for the business object associated with the node, making it tough to get a list of all properties.
I wonder if there is a way to get the First broken rules from 'BrokenRules' without iterating through the list of properties.
Any ideas?
Kind Regards
Beta Was this translation helpful? Give feedback.
All reactions