Migration to asp.net core of the MVC Foolproof Validation library.
This library add many new validation attributes to your toolbox.
Operator validators:
- Is
- EqualTo
- NotEqualTo
- GreaterThan
- LessThan
- GreaterThanOrEqualTo
- LessThanOrEqualTo
Improved required validators:
- RequiredIf
- RequiredIfNot
- RequiredIfTrue
- RequiredIfFalse
- RequiredIfEmpty
- RequiredIfNotEmpty
- RequiredIfRegExMatch
- RequiredIfNotRegExMatch
See full library documentation here: https://codeplexarchive.org/project/foolproof
New operator validators:
- In
- NotIn
All the validators are available for client side validation as well.
NuGet: install-package FoolProof.Core
- Include namespace FoolProof.Core
- Just add this line
services.AddFoolProof();
to your ConfigureServices method on the Startup class; this will register a newIValidationAttributeAdapterProvider
.
You can review a kind of DEMO app (the WebApp used to execute E2E tests) here: E2E/Demo WebApp