View on GitHub
Clean Architecture Toolkit for .NET
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications.
It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design.

|   HOME   |   MODULE OVERVIEW   |   DEMO   |   CAT.VALIDATORS   |

Code Reference

» Cat.Validators.Abstractions Assembly » Cat.Validators.Abstractions Namespace

ICatValidatorBuilder<TModel> Interface

Collects the rules of a validator. You get one in Build(ICatValidatorBuilder<TModel>).

public interface ICatValidatorBuilder<TModel>
    where TModel : class

Type parameters

TModel

The type being validated.

Methods  
AddPropertyRules<TProperty>(Expression<Func<TModel,TProperty>>, Action<ICatValidatorPropertyRuleBuilder<TModel,TProperty>>) Adds rules for one property of the model.
AddRules(Action<ICatValidatorModelRuleBuilder<TModel>>) Adds rules that look at the whole model.