FluentValidationPropertyValidator
Assembly: ServiceStack.Mvc.dll
View Source
Declaration
public class FluentValidationPropertyValidator : ModelValidator
Properties
Validator
View Source
Declaration
public IPropertyValidator Validator { get; }
Rule
View Source
Declaration
public PropertyRule Rule { get; }
ShouldValidate
View Source
Declaration
protected bool ShouldValidate { get; set; }
Methods
Validate(Object)
View Source
Declaration
public override IEnumerable<ModelValidationResult> Validate(object container)
Returns
System.Collections.Generic.IEnumerable<ModelValidationResult>
Parameters
Type | Name |
---|---|
System.Object | container |
TypeAllowsNullValue(Type)
View Source
Declaration
protected bool TypeAllowsNullValue(Type type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | type |
ShouldGenerateClientSideRules()
View Source
Declaration
protected virtual bool ShouldGenerateClientSideRules()
Returns
System.Boolean
GetClientValidationRules()
View Source
Declaration
public override IEnumerable<ModelClientValidationRule> GetClientValidationRules()
Returns
System.Collections.Generic.IEnumerable<ModelClientValidationRule>