IncaTechnologies.WPF.Validation
1.1.1
Prefix Reserved
See the version list below for details.
dotnet add package IncaTechnologies.WPF.Validation --version 1.1.1
NuGet\Install-Package IncaTechnologies.WPF.Validation -Version 1.1.1
<PackageReference Include="IncaTechnologies.WPF.Validation" Version="1.1.1" />
paket add IncaTechnologies.WPF.Validation --version 1.1.1
#r "nuget: IncaTechnologies.WPF.Validation, 1.1.1"
// Install IncaTechnologies.WPF.Validation as a Cake Addin #addin nuget:?package=IncaTechnologies.WPF.Validation&version=1.1.1 // Install IncaTechnologies.WPF.Validation as a Cake Tool #tool nuget:?package=IncaTechnologies.WPF.Validation&version=1.1.1
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 | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
-
net6.0-windows7.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
1.1.0 - Fixed critical problem with project reference
1.1.1 - Added documentation