3 writes to ValidationModelName
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\SystemTextJsonValidationMetadataProvider.cs (1)
65context.ValidationMetadata.ValidationModelName = propertyName;
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (1)
227=> context.ValidationMetadata.ValidationModelName = context.Key.Name?.ToUpperInvariant();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonValidationMetadataProvider.cs (1)
62context.ValidationMetadata.ValidationModelName = propertyName!;
14 references to ValidationModelName
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
460internal override string? ValidationModelName => ValidationMetadata.ValidationModelName;
Microsoft.AspNetCore.Mvc.Core.Test (7)
ModelBinding\Metadata\SystemTextJsonValidationMetadataProviderTest.cs (7)
25Assert.NotNull(context.ValidationMetadata.ValidationModelName); 26Assert.Equal(propertyName, context.ValidationMetadata.ValidationModelName); 43Assert.NotNull(context.ValidationMetadata.ValidationModelName); 44Assert.Equal(JsonNamingPolicy.CamelCase.ConvertName(propertyName), context.ValidationMetadata.ValidationModelName); 60Assert.Null(context.ValidationMetadata.ValidationModelName); 78Assert.NotNull(context.ValidationMetadata.ValidationModelName); 79Assert.Equal(namingPolicy.ConvertName(propertyName), context.ValidationMetadata.ValidationModelName);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (6)
NewtonsoftJsonValidationMetadataProviderTest.cs (6)
27Assert.NotNull(context.ValidationMetadata.ValidationModelName); 28Assert.Equal(propertyName, context.ValidationMetadata.ValidationModelName); 45Assert.NotNull(context.ValidationMetadata.ValidationModelName); 46Assert.Equal(new CamelCaseNamingStrategy().GetPropertyName(propertyName, false), context.ValidationMetadata.ValidationModelName); 64Assert.NotNull(context.ValidationMetadata.ValidationModelName); 65Assert.Equal(namingStrategy.GetPropertyName(propertyName, false), context.ValidationMetadata.ValidationModelName);