Class ValidationExtensions
- Namespace
- Innova.Data.Validation
- Assembly
- Innova.Data.dll
Provides extension methods for validating objects using FluentValidation.
public static class ValidationExtensions
- Inheritance
-
ValidationExtensions
Methods
- AccountExists<T>(IRuleBuilder<T, string>)
Specifies a custom validator for the AccountExists rule.
- GetErrors(ValidationResult)
Gets the validation errors as a string.
- GetErrors(IEnumerable<ValidationResult>)
Gets the validation errors as a string for the specified validation results.
- GetErrors<T>(ValidationResult, T)
Gets the validation errors as a string for the specified entity.
- GetResults(INotifyDataErrorInfo)
Gets the validation results for the specified INotifyDataErrorInfo.
- GetResultsAsString(INotifyDataErrorInfo)
Gets the validation results as a string for the specified INotifyDataErrorInfo.
- ValidateAndIfThrowError(IEntityValidation)
Validates the entity and throws a ValidationException if the result is not valid.
- ValidateResult<T>(ValidationResult, T)
Validates the validation result and throws a ValidationException if the result is not valid.
- Validate<T>(IValidator<T>, T, string, Expression<Func<T, object>>[])
Validates an object using the specified validator, rule set, and property expressions.
- Validate<T>(IValidator<T>, T, string, string)
Validates an object using the specified validator, rule set, and property name.
- Validate<T>(IValidator<T>, T, string, string[])
Validates an object using the specified validator, rule set, and properties.