示例#1
0
 public static Validator <T> CreateValidatorFromAttributes <T>()
 {
     return(ValidationFactory.CreateValidatorFromAttributes <T>(string.Empty));
 }
示例#2
0
 public static ValidationResults ValidateFromAttributes <T>(T target)
 {
     return(ValidationFactory.CreateValidatorFromAttributes <T>().Validate(target));
 }