[]
Base class for validation classes
public class ValidatorBase<T> where T : class
Name | Description |
---|---|
T | Type of object to validate |
Name | Description |
---|---|
ValidatorBase() |
Name | Description |
---|---|
RuleFor<TProperty>(Func<T, TProperty>) | Add property to verification |
Validate(T) | Runs validation |
ValidateAndTrow(T) | Runs validation and throws a ValidationException if fail |