IncaTechnologies.WPF.Validation
1.0.0
Prefix Reserved
IncaTechnologies.WPF.Validation 1.1.0
Additional DetailsThis version contains a critical bug that prevent the NuGet package to be installed.
See the version list below for details.
dotnet add package IncaTechnologies.WPF.Validation --version 1.0.0
NuGet\Install-Package IncaTechnologies.WPF.Validation -Version 1.0.0
<PackageReference Include="IncaTechnologies.WPF.Validation" Version="1.0.0" />
paket add IncaTechnologies.WPF.Validation --version 1.0.0
#r "nuget: IncaTechnologies.WPF.Validation, 1.0.0"
// Install IncaTechnologies.WPF.Validation as a Cake Addin #addin nuget:?package=IncaTechnologies.WPF.Validation&version=1.0.0 // Install IncaTechnologies.WPF.Validation as a Cake Tool #tool nuget:?package=IncaTechnologies.WPF.Validation&version=1.0.0
WPF Validation Framework
Why I build this project?
I was working on a project with a number of models. When the time to add validation come it felt awkward mark every model with attribute or even worse insert validation directly in the model. I wanted a way to describe te validation for a model without touching the model itself.
What the project does?
It abstracts the validation of the properties of an object using a separate class (IValidationDescriptions<T>) based on the type of the object.
How to use the project
ValidationService is a facade class for validation, use it to register IValidationDescriptions<T> where T is the object that you want to validate. The simplest way of doing so is inherit form the abstract class ValidationDescriptions<T> and in the constructor add the rules via RulesFor and AddRule methods.
Look at the Example project inside the git to see the framework in action, https://github.com/Matt90hz/WPF-Validation-Framework.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0-windows7.0 is compatible. net6.0-windows was computed. net7.0-windows was computed. net8.0-windows was computed. |
-
net5.0-windows7.0
- Descriptions (>= 1.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.0.0 - Frist release