1 write to Name
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Metadata\ModelMetadataIdentity.cs (1)
21Name = name;
12 references to Name
Microsoft.AspNetCore.Mvc.Abstractions (7)
ModelBinding\Metadata\ModelMetadataIdentity.cs (4)
142else if (ContainerType != null && Name != null) 185Name == other.Name && 204hash.Add(Name, StringComparer.Ordinal);
ModelBinding\ModelMetadata.cs (3)
97public string? Name => Identity.Name; 102public string? ParameterName => MetadataKind == ModelMetadataKind.Parameter ? Identity.Name : null; 107public string? PropertyName => MetadataKind == ModelMetadataKind.Property ? Identity.Name : null;
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (2)
221if (propertyHelper.Name == propertyKey.Name) 227Debug.Fail($"Unable to find property '{propertyKey.Name}' on type '{propertyKey.ContainerType}.");
ModelBinding\Metadata\SystemTextJsonValidationMetadataProvider.cs (1)
60propertyName = context.Key.Name is string contextKeyName
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)
59propertyName = _jsonNamingPolicy.GetPropertyName(context.Key.Name!, false);