Method | Description | |
---|---|---|
Add ( |
||
Configure ( Action |
Initializes the FluentValidationModelValidatorProvider using the default options and adds it in to the ModelValidatorProviders collection.
|
|
FluentValidationModelValidatorProvider ( IValidatorFactory validatorFactory = null ) : System | ||
GetValidators ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IEnumerable |
Method | Description | |
---|---|---|
CreateNotNullValidatorForProperty ( ModelMetadata metadata, System.Web.Mvc.ControllerContext cc ) : System.Web.Mvc.ModelValidator | ||
CreateValidator ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IValidator | ||
GetModelValidator ( ModelMetadata meta, System.Web.Mvc.ControllerContext context, PropertyRule rule, IPropertyValidator propertyValidator ) : System.Web.Mvc.ModelValidator | ||
GetValidatorsForModel ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context, IValidator validator ) : IEnumerable |
||
GetValidatorsForProperty ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context, IValidator validator ) : IEnumerable |
||
IsValidatingProperty ( ModelMetadata metadata ) : bool |
public Add ( |
||
validatorType | ||
factory | FluentValidationModelValidationFactory | |
return | void |
public static Configure ( Action |
||
configurationExpression | Action |
|
return | void |
protected CreateNotNullValidatorForProperty ( ModelMetadata metadata, System.Web.Mvc.ControllerContext cc ) : System.Web.Mvc.ModelValidator | ||
metadata | ModelMetadata | |
cc | System.Web.Mvc.ControllerContext | |
return | System.Web.Mvc.ModelValidator |
protected CreateValidator ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IValidator | ||
metadata | ModelMetadata | |
context | System.Web.Mvc.ControllerContext | |
return | IValidator |
public FluentValidationModelValidatorProvider ( IValidatorFactory validatorFactory = null ) : System | ||
validatorFactory | IValidatorFactory | |
return | System |
protected GetModelValidator ( ModelMetadata meta, System.Web.Mvc.ControllerContext context, PropertyRule rule, IPropertyValidator propertyValidator ) : System.Web.Mvc.ModelValidator | ||
meta | ModelMetadata | |
context | System.Web.Mvc.ControllerContext | |
rule | PropertyRule | |
propertyValidator | IPropertyValidator | |
return | System.Web.Mvc.ModelValidator |
public GetValidators ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IEnumerable |
||
metadata | ModelMetadata | |
context | System.Web.Mvc.ControllerContext | |
return | IEnumerable |
protected GetValidatorsForModel ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context, IValidator validator ) : IEnumerable |
||
metadata | ModelMetadata | |
context | System.Web.Mvc.ControllerContext | |
validator | IValidator | |
return | IEnumerable |
protected GetValidatorsForProperty ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context, IValidator validator ) : IEnumerable |
||
metadata | ModelMetadata | |
context | System.Web.Mvc.ControllerContext | |
validator | IValidator | |
return | IEnumerable |
protected IsValidatingProperty ( ModelMetadata metadata ) : bool | ||
metadata | ModelMetadata | |
return | bool |