Skip to main content

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
TypeName
System.Objectcontainer

TypeAllowsNullValue(Type)

View Source
Declaration
protected bool TypeAllowsNullValue(Type type)
Returns

System.Boolean

Parameters
TypeName
System.Typetype

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>