I saw a couple of threads about validating across classes, but I need something simpler.
I have an object.StartDate and object.EndDate, and I'd like to ensure that the StartDate is less than or equal to the EndDate.
I tried associating a custom rule StartIsLessThanOrEqualToEnd with both properties, but that doesn't do what I want. If user sets the StartDate first, that rule gets broken, and does not get re-checked when user sets the EndDate. So, the IsValid is false, but the rule is not broken.
Is there a way to call an "object-level" validation, as opposed to a "property-level" validation? What's the best way to handle this scenario?
Dave