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

ICatValidatorPropertyRule<TModel,TProperty> Interface

A rule that checks one property of a model.

public interface ICatValidatorPropertyRule<TModel,TProperty> : Cat.Validators.Abstractions.ICatValidatorModelRule<TModel>
    where TModel : class

Type parameters

TModel

The type being validated.

TProperty

The type of the property.

Implements Cat.Validators.Abstractions.ICatValidatorModelRule<TModel>

Properties  
ErrorCode Replaces the error code. Leave it null to use the code of the rule.
ErrorMessage Replaces the error message. Leave it null to use the message of the rule.
FieldName Replaces the field name in the errors. Leave it null to use the property name.