Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.29 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.29 KB

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 features added:

New operator validators:

  • In
  • NotIn

All the validators are available for client side validation as well.

Installation

NuGet: install-package FoolProof.Core

Setting Up

  • Include namespace FoolProof.Core
  • Just add this line services.AddFoolProof(); to your ConfigureServices method on the Startup class; this will register a new IValidationAttributeAdapterProvider.

Example WebApp

You can review a kind of DEMO app (the WebApp used to execute E2E tests) here: E2E/Demo WebApp