3 implementations of IPropertyValidationFilter
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\ValidateNeverAttribute.cs (1)
15public sealed class ValidateNeverAttribute : Attribute, IPropertyValidationFilter
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ValidationIntegrationTests.cs (1)
1529private class ValidateSometimesAttribute : Attribute, IPropertyValidationFilter
ValidationWithRecordIntegrationTests.cs (1)
1339private class ValidateSometimesAttribute : Attribute, IPropertyValidationFilter
15 references to IPropertyValidationFilter
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelMetadata.cs (2)
421/// Gets an <see cref="IPropertyValidationFilter"/> implementation that indicates whether this model should be 425public virtual IPropertyValidationFilter? PropertyValidationFilter => null;
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
724public override IPropertyValidationFilter PropertyValidationFilter
Microsoft.AspNetCore.Mvc.Core (8)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
414public override IPropertyValidationFilter? PropertyValidationFilter => ValidationMetadata.PropertyValidationFilter;
ModelBinding\Metadata\DefaultValidationMetadataProvider.cs (5)
40var validationFilter = context.PropertyAttributes!.OfType<IPropertyValidationFilter>().FirstOrDefault(); 47.OfType<IPropertyValidationFilter>() 55var validationFilter = context.ParameterAttributes!.OfType<IPropertyValidationFilter>().FirstOrDefault();
ModelBinding\Metadata\ValidationMetadata.cs (2)
24/// Gets or sets an <see cref="IPropertyValidationFilter"/> implementation that indicates whether this model 27public IPropertyValidationFilter? PropertyValidationFilter { get; set; }
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (4)
858public static TheoryData<IPropertyValidationFilter> ValidationFilterData 862return new TheoryData<IPropertyValidationFilter> 872public void PropertyValidationFilter_ReflectsFilter_FromValidationMetadata(IPropertyValidationFilter value) 890var validationFilter = metadata.PropertyValidationFilter;