DataAnnotationsModelValidatorProvider Class
Implements the default validation provider for ASP.NET MVC.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
System.Web.Mvc::ModelValidatorProvider
System.Web.Mvc::AssociatedValidatorProvider
System.Web.Mvc::DataAnnotationsModelValidatorProvider
| Name | Description | |
|---|---|---|
![]() | DataAnnotationsModelValidatorProvider() | Initializes a new instance of the DataAnnotationsModelValidatorProvider class. |
| Name | Description | |
|---|---|---|
![]() ![]() | AddImplicitRequiredAttributeForValueTypes | Gets or sets a value that indicates whether non-nullable value types are required. |
A validation provider provides validators for the data model. This class is an implementation of the AssociatedValidatorProvider class. It provides validators for attributes which derive from ValidationAttribute and it provides a validator for types which implement IValidatableObject. To support client side validation, register adapters through the static methods of this class, or create validation attributes that implement IClientValidatable. The logic to support IClientValidatable is implemented in the DataAnnotationsModelValidator class.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



