CustomValidatorExtensions<T, TProperty> extension
Extension methods for custom validators (predicate-based).
- on
-
- PropertyRule<
T, TProperty>
- PropertyRule<
Methods
-
must(
bool predicate(TProperty?), String errorMessage) → PropertyRule< T, TProperty> -
Available on PropertyRule<
Adds a custom validation rule using a predicate.T, TProperty> , provided by the CustomValidatorExtensions extension -
mustAsync(
Future< bool> predicate(TProperty?), String errorMessage) → PropertyRule<T, TProperty> -
Available on PropertyRule<
Adds a custom asynchronous validation rule.T, TProperty> , provided by the CustomValidatorExtensions extension -
mustAsyncWith(
Future< bool> predicate(T instance, TProperty? value), String errorMessage) → PropertyRule<T, TProperty> -
Available on PropertyRule<
Adds a custom asynchronous validation rule with access to the entire object.T, TProperty> , provided by the CustomValidatorExtensions extension -
mustWith(
bool predicate(T instance, TProperty? value), String errorMessage) → PropertyRule< T, TProperty> -
Available on PropertyRule<
Adds a custom validation rule with access to the entire object.T, TProperty> , provided by the CustomValidatorExtensions extension