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
ファイルを表示 Open project: primaryobjects/MVC-Creep-Collector

Protected Methods

Method Description
GetValidators ( ModelMetadata metadata, ControllerContext context, IEnumerable attributes ) : IEnumerable

Private Methods

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

Method Details

GetValidators() protected method

protected GetValidators ( ModelMetadata metadata, ControllerContext context, IEnumerable attributes ) : IEnumerable
metadata ModelMetadata
context ControllerContext
attributes IEnumerable
return IEnumerable