4 overrides of DisplayName
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcModelMetadata.cs (1)
26public override string DisplayName { get; }
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
527public override string DisplayName
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointModelMetadata.cs (1)
26public override string? DisplayName { get; }
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
199public override string? DisplayName
12 references to DisplayName
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelMetadata.cs (2)
703/// non-<see langword="null"/> value: <see cref="DisplayName"/>, <see cref="Name"/>, or <c>ModelType.Name</c>. 708return DisplayName ?? Name ?? ModelType.Name;
ModelBinding\ModelStateDictionary.cs (1)
284var name = metadata.DisplayName ?? metadata.PropertyName;
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DisplayMetadata.cs (1)
83/// display name of the model. See <see cref="ModelMetadata.DisplayName"/>.
Microsoft.AspNetCore.Mvc.Core.Test (3)
ModelBinding\ParameterBinderTest.cs (3)
63mockModelMetadata.Setup(o => o.DisplayName).Returns("Ignored Display Name"); // Bind attribute errors are phrased in terms of the model name, not display name 92mockModelMetadata.Setup(o => o.DisplayName).Returns("My Display Name"); 231mockModelMetadata.Setup(o => o.DisplayName).Returns("My Display Name");
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
NumericClientModelValidator.cs (1)
37var name = modelMetadata.DisplayName ?? modelMetadata.Name;
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
ModelMetadataProviderTest.cs (2)
191new DisplayAttribute { Name = "value" }, metadata => metadata.DisplayName 460var result = metadata.DisplayName;
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultHtmlGenerator.cs (1)
371modelExplorer.Metadata.DisplayName ??
HtmlHelper.cs (1)
776var resolvedDisplayName = modelExplorer.Metadata.DisplayName ?? modelExplorer.Metadata.PropertyName;