'Validation' for all properties of an object #4102
Unanswered
Chicagoan2016
asked this question in
Questions
Replies: 1 comment 3 replies
-
You can add them all as |
Beta Was this translation helpful? Give feedback.
3 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 are using business base as a Criteria object. Our requirement is simple: ensure at least one property is present and don't allow special characters.
I can get the list of properties for our object from 'FieldManager.GetRegisteredProperties();' and the business rule can have a constructor like ' public ValidateSearchCriteria(IEnumerable fields)'
but how could we retrieve the properties in the Execute method of the business rule?
Kind Regards
Beta Was this translation helpful? Give feedback.
All reactions