1 write to ModelValidatorProviders
Microsoft.AspNetCore.Mvc.Core (1)
MvcOptions.cs (1)
49
ModelValidatorProviders
= new List<IModelValidatorProvider>();
5 references to ModelValidatorProviders
Microsoft.AspNetCore.Mvc.Core (4)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
219
return new DefaultObjectValidator(metadataProvider, options.
ModelValidatorProviders
, options);
Infrastructure\MvcCoreMvcOptionsSetup.cs (2)
95
options.
ModelValidatorProviders
.Add(new DefaultModelValidatorProvider());
104
options.ModelMetadataDetailsProviders.Add(new HasValidatorsValidationMetadataProvider(options.
ModelValidatorProviders
));
ModelBinding\Validation\IMetadataBasedModelValidatorProvider.cs (1)
16
/// can be calculated if all instances in <see cref="MvcOptions.
ModelValidatorProviders
"/> are <see cref="IMetadataBasedModelValidatorProvider" />.
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DependencyInjection\MvcDataAnnotationsMvcOptionsSetup.cs (1)
49
options.
ModelValidatorProviders
.Add(new DataAnnotationsModelValidatorProvider(