AFF.DomainValidation
1.5.0
See the version list below for details.
dotnet add package AFF.DomainValidation --version 1.5.0
NuGet\Install-Package AFF.DomainValidation -Version 1.5.0
<PackageReference Include="AFF.DomainValidation" Version="1.5.0" />
paket add AFF.DomainValidation --version 1.5.0
#r "nuget: AFF.DomainValidation, 1.5.0"
// Install AFF.DomainValidation as a Cake Addin
#addin nuget:?package=AFF.DomainValidation&version=1.5.0
// Install AFF.DomainValidation as a Cake Tool
#tool nuget:?package=AFF.DomainValidation&version=1.5.0
AFF.DomainValidation
This is a simple library cross cutting to DDD, but you can use to any project.
The main idea of that library is to create a concept and a standart of implementation for treatment of the message. Since we have a class of the validate data, that same class can use to validate other many interation moments of the same data.
See the example project which is in console. In it we’ll find a person entity (EntityPerson), a service class (ServicePerson) to manage the CRUD and another class for data validation (ValidationPerson). In the validation class we have the main validate, the method Validate, but is possible to add other methods of validation to the person entity, such as example, DeleteValidation, that will validate the possibility of delete the chosen registry.
When all messages are centralized in the class, that facilitates control of show for any project that is under developement. And based on the status pattern, the control how the messages will be displayed become easier.
Download the example project and see better the implementation of the Validation.
References
- System
Pre-requisites
- .Net Framework 4.5 or more
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v1.5.0.