Exemple #1
0
 public static Validator <T> CreateValidator <T>()
 {
     return(ValidationFactory.CreateValidator <T>(string.Empty, true));
 }
Exemple #2
0
 public static Validator <T> CreateValidator <T>(string ruleset)
 {
     return(ValidationFactory.CreateValidator <T>(ruleset, true));
 }
Exemple #3
0
 public static Validator <T> CreateValidatorFromAttributes <T>()
 {
     return(ValidationFactory.CreateValidatorFromAttributes <T>(string.Empty));
 }
Exemple #4
0
 public static Validator CreateValidator(Type targetType, string ruleset)
 {
     return(ValidationFactory.CreateValidator(targetType, ruleset, true));
 }
Exemple #5
0
 public static Validator CreateValidator(Type targetType)
 {
     return(ValidationFactory.CreateValidator(targetType, string.Empty));
 }
Exemple #6
0
 public static ValidationResults Validate <T>(T target)
 {
     return(ValidationFactory.CreateValidator <T>().Validate(target));
 }
Exemple #7
0
 public static ValidationResults ValidateFromAttributes <T>(T target)
 {
     return(ValidationFactory.CreateValidatorFromAttributes <T>().Validate(target));
 }