Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/aspnetwebstack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Web.Mvc/ModelValidatorProviders.cs')
-rw-r--r--src/System.Web.Mvc/ModelValidatorProviders.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/System.Web.Mvc/ModelValidatorProviders.cs b/src/System.Web.Mvc/ModelValidatorProviders.cs
new file mode 100644
index 00000000..66852578
--- /dev/null
+++ b/src/System.Web.Mvc/ModelValidatorProviders.cs
@@ -0,0 +1,17 @@
+namespace System.Web.Mvc
+{
+ public static class ModelValidatorProviders
+ {
+ private static readonly ModelValidatorProviderCollection _providers = new ModelValidatorProviderCollection()
+ {
+ new DataAnnotationsModelValidatorProvider(),
+ new DataErrorInfoModelValidatorProvider(),
+ new ClientDataTypeModelValidatorProvider()
+ };
+
+ public static ModelValidatorProviderCollection Providers
+ {
+ get { return _providers; }
+ }
+ }
+}