/// <summary>
        /// Initializes a new instance of the <see cref="CompositeModelValidatorProvider"/> class.
        /// </summary>
        /// <param name="providers">The providers.</param>
        public CompositeModelValidatorProvider([NotNull] params ModelValidatorProvider[] providers)
        {
            Invariant.IsNotNull(providers, "providers");

            Providers = providers;
        }
示例#2
0
 public static IRegistrar ConstructMetadataUsing([NotNull] Func <IEnumerable <IModelMetadataConfiguration> > configurationFactory)
 {
     Invariant.IsNotNull(configurationFactory, "configurationFactory");
     return(Registrar.ConstructMetadataUsing(configurationFactory));
 }
示例#3
0
        /// <summary>
        /// Register a new convention
        /// </summary>
        /// <param name="convention"><see cref="IPropertyMetadataConvention"/> class</param>
        public virtual void RegisterConvention([NotNull] IPropertyMetadataConvention convention)
        {
            Invariant.IsNotNull(convention, "convention");

            conventions.Add(convention);
        }