13 references to ValidationMetadata
Microsoft.AspNetCore.Mvc.Core (9)
ModelBinding\Metadata\DefaultModelMetadata.cs (9)
320if (ValidationMetadata.IsRequired.HasValue) 322_isRequired = ValidationMetadata.IsRequired; 414public override IPropertyValidationFilter? PropertyValidationFilter => ValidationMetadata.PropertyValidationFilter; 423if (ValidationMetadata.ValidateChildren.HasValue) 425_validateChildren = ValidationMetadata.ValidateChildren.Value; 457internal override bool PropertyHasValidators => ValidationMetadata.PropertyHasValidators; 460internal override string? ValidationModelName => ValidationMetadata.ValidationModelName; 481if (defaultModelMetadata.ValidationMetadata.HasValidators != false) 540_validatorMetadata = new ReadOnlyCollection<object>(ValidationMetadata.ValidatorMetadata);
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (4)
42Assert.Same(metadata1.ValidationMetadata, metadata2.ValidationMetadata); 133Assert.Same(properties1[i].ValidationMetadata, properties2[i].ValidationMetadata);