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