C# Class CreepCollector.Managers.ExtendedDataAnnotationsModelValidatorProvider

Adds a custom model validation binder, allowing data annotation attributes to be added to models dynamically. Include the following line in Application_Start of the Global.asax.cs: ModelValidatorProviders.Providers.Add(new ExtendedDataAnnotationsModelValidatorProvider());
Inheritance: System.Web.Mvc.DataAnnotationsModelValidatorProvider
Afficher le fichier Open project: primaryobjects/MVC-Creep-Collector

Méthodes protégées

Méthode Description
GetValidators ( ModelMetadata metadata, ControllerContext context, IEnumerable attributes ) : IEnumerable

Private Methods

Méthode Description
Create ( ModelMetadata metadata, ControllerContext context, System.ComponentModel.DataAnnotations.ValidationAttribute attribute ) : System.Web.Mvc.ModelValidator

Method Details

GetValidators() protected méthode

protected GetValidators ( ModelMetadata metadata, ControllerContext context, IEnumerable attributes ) : IEnumerable
metadata ModelMetadata
context ControllerContext
attributes IEnumerable
Résultat IEnumerable