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 » ICatValidatorModelRuleBuilder<TModel> Interface

ICatValidatorModelRuleBuilder<TModel>.AddRule<TRule>(TRule) Method

Adds a rule to the validator.

void AddRule<TRule>(TRule rule)
    where TRule : class, Cat.Validators.Abstractions.ICatValidatorModelRule<TModel>;

Type parameters

TRule

The type of the rule.

Parameters

rule TRule

The rule to add.