Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public static Configure ( Action |
||
configurationExpression | Action |
|
Результат | void |
protected CreateNotNullValidatorForProperty ( ModelMetadata metadata, System.Web.Mvc.ControllerContext cc ) : System.Web.Mvc.ModelValidator | ||
metadata | ModelMetadata | |
cc | System.Web.Mvc.ControllerContext | |
Результат | System.Web.Mvc.ModelValidator |
protected CreateValidator ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IValidator | ||
metadata | ModelMetadata | |
context | System.Web.Mvc.ControllerContext | |
Результат | IValidator |
public FluentValidationModelValidatorProvider ( IValidatorFactory validatorFactory = null ) : System | ||
validatorFactory | IValidatorFactory | |
Результат | 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 | |
Результат | System.Web.Mvc.ModelValidator |
public GetValidators ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IEnumerable |
||
metadata | ModelMetadata | |
context | System.Web.Mvc.ControllerContext | |
Результат | IEnumerable |
protected GetValidatorsForModel ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context, IValidator validator ) : IEnumerable |
||
metadata | ModelMetadata | |
context | System.Web.Mvc.ControllerContext | |
validator | IValidator | |
Результат | IEnumerable |
protected GetValidatorsForProperty ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context, IValidator validator ) : IEnumerable |
||
metadata | ModelMetadata | |
context | System.Web.Mvc.ControllerContext | |
validator | IValidator | |
Результат | IEnumerable |
protected IsValidatingProperty ( ModelMetadata metadata ) : bool | ||
metadata | ModelMetadata | |
Результат | bool |