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

ModelValidatorProviders.cs « System.Web.Mvc « src - github.com/mono/aspnetwebstack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: df3704aabd7d3ee157068a4649f51a74a0130387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.

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; }
        }
    }
}