Skip to content

Migration to asp.net core of the "MVC Foolproof Validation" library.

License

Notifications You must be signed in to change notification settings

rpgkaiser/FoolProof.Core

Repository files navigation

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

About

Migration to asp.net core of the "MVC Foolproof Validation" library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published