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