Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

nuget.org : rockfluid.scissorsvalidation

A validations library for automating both client-side and server-side validations. Sample usage: Add the validator attributes to the properties of the data record class. These defines the validation rules. public class Employee { [StringValidator("First Name", 5, 50, IsRequired = true)] public String FirstName { get; set; } [DoubleValidator("Rating", 0.0, 5.0, IsRequired = true)] public Single Rating { get; set; } [DateValidator("Date Employed", "2017-07-05")] public DateTime DateEmployed { get; set; } } To start the validation, call the Validate() function on the class instance that contains data to be validated. var validation = RockFluid.ScissorValidations.Validator.Validate(p); The validation result contains information if the validation found issues, with the list of validation results. Refer to the wiki for how to configure in more detail: https://github.com/johnkevincheng/ScissorValidations/wiki 1.0.1 Validate() overload without need for a mapping dictionary. This can only validate data already copied to the class object, thus cannot validate from the user interface, but can be useful for import sources. 1.0.0 Initial release.

Registry - Homepage - JSON
purl: pkg:nuget/rockfluid.scissorsvalidation
Keywords: validations, validation-library, validation-engine, validation-builder
License: MIT
Latest release: over 3 years ago
First release: over 6 years ago
Downloads: 1,498 total
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago

    Loading...
    Readme
    Loading...