/Atrob

Add more validation attributes to Asp.net core project.... یک کتابخانه کوچک برای Asp است که تعدادی validation Attribute را در خود جای داده است. برخی از Attribute‌های این کتابخانه شامل اتریبیوت‌های file validation برای اعتبار سنجی فایل‌ها از نظر فرمت فایل، اجباری بودن آپلود، حجم فایل و... ، date time validation ها برای اعتبار سنجی محدوده تاریخ ورودی

Primary LanguageC#Apache License 2.0Apache-2.0

Atrob

Add some validation attributes to your asp.net core project and enjoy

Nuget

This Library Is Currently A Preview Version, If You Find Any Bugs, Please Report Them. Also Let Me Know If You Have Any Comments

Pull requests are welcome

Install via NuGet

To install Atrob, run the following command in the Package Manager Console :

PM> Install-Package Atrob

Client Validation

Some attributes include user side validation, follow the steps below to add it

In api projects, client-side validation are not activated and will have no overhead

  1. download atob.js and add to project
  2. Then add it after the jquery-validation-unobtrusive

I recommend adding it inside _ValidationScriptsPartial.cshtml

<script src="~/js/Atrob.js"></script>

Adding client-side validations is done!