xVal, DataAnnotations on the entire class
问题 I have a complete validation on an obeject and am trying to figure out the best way to handle it. Given the following class: public class LetterResponse { public Guid Id {get;set;} public bool SendBlankCart {get;set;} public string ToName {get;set;} public string ToAddress {get;set;} } I want to use a dataannotation and xval in order to validate the class before I persist it, but I have complex validation that requires more than one property. Pseudo: if SendBlankCart { - no validation on