/// <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; }
public static IRegistrar ConstructMetadataUsing([NotNull] Func <IEnumerable <IModelMetadataConfiguration> > configurationFactory) { Invariant.IsNotNull(configurationFactory, "configurationFactory"); return(Registrar.ConstructMetadataUsing(configurationFactory)); }
/// <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); }