| 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
ICatValidatorBuilder<TModel>.AddPropertyRules<TProperty>(Expression<Func<TModel,TProperty>>, Action<ICatValidatorPropertyRuleBuilder<TModel,TProperty>>) Method
Adds rules for one property of the model.
Cat.Validators.Abstractions.ICatValidatorBuilder<TModel> AddPropertyRules<TProperty>(System.Linq.Expressions.Expression<System.Func<TModel,TProperty>> expression, System.Action<Cat.Validators.Abstractions.ICatValidatorPropertyRuleBuilder<TModel,TProperty>> b);
Type parameters
TProperty
The type of the property.
Parameters
expression System.Linq.Expressions.Expression<System.Func<TModel,TProperty>>
Picks the property, like m => m.Name.
b System.Action<Cat.Validators.Abstractions.ICatValidatorPropertyRuleBuilder<TModel,TProperty>>
Adds the rules to the given builder.
Returns
Cat.Validators.Abstractions.ICatValidatorBuilder<TModel>
The same builder, so calls can be chained.