2 writes to DisplayName
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsModelValidator.cs (1)
79DisplayName = metadata.GetDisplayName(),
ValidatableObjectAdapter.cs (1)
38DisplayName = context.ModelMetadata.GetDisplayName(),
15 references to DisplayName
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
1546$"Error1 about '{validationContext.MemberName}' (display: '{validationContext.DisplayName}').",
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ValidatableObjectAdapterTest.cs (1)
202DisplayName = validationContext.DisplayName;
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
ValidationIntegrationTests.cs (2)
1301$"'{validationContext.MemberName}' (display: '{validationContext.DisplayName}') is not valid due " + 1319$"'{validationContext.MemberName}' (display: '{validationContext.DisplayName}') is not valid due " +
ValidationWithRecordIntegrationTests.cs (2)
1151$"'{validationContext.MemberName}' (display: '{validationContext.DisplayName}') is not valid due " + 1169$"'{validationContext.MemberName}' (display: '{validationContext.DisplayName}') is not valid due " +
Microsoft.Extensions.Compliance.Redaction (1)
src\Shared\Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
Microsoft.Extensions.Telemetry (1)
src\Shared\Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
Shared (1)
Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
56return new ValidationResult(FormatErrorMessage(validationContext.DisplayName), memberNames);
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (2)
304return new ValidationResult(FormatErrorMessage(validationContext.DisplayName), memberNames); 441var errorMessage = FormatErrorMessage(validationContext.DisplayName);