InlineValidator<T>
Validator implementation that allows rules to be defined without inheriting from AbstractValidator.
Assembly: ServiceStack.dll
View Source
Declaration
public class InlineValidator<T> : AbstractValidator<T>, IValidator<T>, IValidator, IEnumerable<IValidationRule>, IEnumerable, IRequiresRequest, IHasTypeValidators, IServiceStackValidator
Methods
Add<TProperty>(Func<InlineValidator<T>, IRuleBuilderOptions<T, TProperty>>)
Allows configuration of the validator.
View Source
Declaration
public void Add<TProperty>(Func<InlineValidator<T>, IRuleBuilderOptions<T, TProperty>> ruleCreator)
Parameters
Type | Name |
---|---|
System.Func<ServiceStack.FluentValidation.InlineValidator`1,ServiceStack.FluentValidation.IRuleBuilderOptions<<T>,<TProperty>>> | ruleCreator |
Type Parameters
TProperty
Implements
- ServiceStack.FluentValidation.IValidator<T>
- ServiceStack.FluentValidation.IValidator
System.Collections.Generic.IEnumerable<ServiceStack.FluentValidation.IValidationRule>
System.Collections.IEnumerable
- ServiceStack.Web.IRequiresRequest
- ServiceStack.IHasTypeValidators
- ServiceStack.FluentValidation.IServiceStackValidator