The RuleCriteria attribute demands that the current object satisfies a specified criteria. Here, this rule is applied to the RuleCriteriaObject class to demand that the following criteria are satisfied:
- A complex criteria where properties are compared with static values.
- A criteria where a property is compared with a read-only parameter.
- A criteria where two properties are compared with each other.
To check this rule, save the current object.