TanvirArjel.CustomValidation NuGet Package

This is a custom server-side validation library for C# and .NET.

This version includes the following validation attributes:

1. RequiredIfAttribute: To mark a field required based on the value of another field.

2. MaxAgeAttribute: To validate maximum age against the date of birth value of DateTime type.

3. MinAgeAttribute: To validate the minimum required age against a date of birth value of DateTime type.

4.

MaxDateAttribute: To set max value validation for a DateTime field.

5. MinDateAttribute: To set min value validation for a DateTime field.

6. TextEditorRequiredAttribute: To enforce the required validation attribute on the online text editors like TinyMCE, CKEditor, etc.

7. CompareToAttribute: To compare one property value against another property value of the same object.

Comparison types are: Equal, NotEqual,GreaterThan,GreatherThanOrEqual,SmallerThan,SmallerThanOrEqual

This version also includes validation against dynamic values from database, configuration file or any external source added for the following type: 1. DateTime Type: with ValidateMaxAge() and ValidateMinAge().




Got any TanvirArjel.CustomValidation Question?





Info

Version: 1.2.2
Author(s): TanvirArjel
Last Update: Wednesday, December 29, 2021
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/TanvirArjel/CustomValidation
NuGet Url: https://www.nuget.org/packages/TanvirArjel.CustomValidation


Install
Install-Package TanvirArjel.CustomValidation
dotnet add package TanvirArjel.CustomValidation
paket add TanvirArjel.CustomValidation
TanvirArjel.CustomValidation Download (Unzip the "nupkg" after downloading)

2 packages depend on this package.


Tags



STATS

must-have-score

.8

avg-downloads-per-day

20

days-since-last-release

872