Пример #1
0
 public PropertyValidatorError(string propertyName, PropertyValidatorReason reason) : this(propertyName, reason, null)
 {
 }
Пример #2
0
 public PropertyValidatorError(string propertyName, PropertyValidatorReason reason, string errorMessage)
 {
     ProperyName  = propertyName;
     Reason       = reason;
     ErrorMessage = errorMessage;
 }
 public static FluentValidation.IRuleBuilderOptions <T, TProperty> SetState <T, TProperty>(this FluentValidation.IRuleBuilderOptions <T, TProperty> rule, PropertyValidatorReason reason)
 {
     return(rule.WithState(x => reason));
 }