Class SrpAbstractValidator<TEntity>
Represents Srp Abstract Validator
Type Parameters
Name | Description |
---|---|
TEntity | Write model entity |
Constructors
SrpAbstractValidator()
Declaration
public SrpAbstractValidator()
Methods
ValidateEntity(TEntity, Action<ValidationContext<TEntity>>)
Validates entity
Declaration
public SrpValidationResult ValidateEntity(TEntity entity, Action<ValidationContext<TEntity>> modifyContext = null)
Parameters
Type | Name | Description |
---|---|---|
TEntity | entity | Write Models Entity |
System.Action<FluentValidation.ValidationContext<TEntity>> | modifyContext | Optional function to modify the context |
Returns
Type | Description |
---|---|
SrpValidationResult | Srp Validation result |