24 references to GetDisplayName
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
702/// <see cref="GetDisplayName()"/> will return the first of the following expressions which has a
Microsoft.AspNetCore.Mvc.Abstractions.Test (4)
ModelBinding\ModelMetadataTest.cs (4)
330var result = metadata.GetDisplayName(); 345var result = metadata.GetDisplayName(); 359var result = metadata.GetDisplayName(); 372var result = metadata.GetDisplayName();
Microsoft.AspNetCore.Mvc.DataAnnotations (14)
CompareAttributeAdapter.cs (3)
36var displayName = validationContext.ModelMetadata.GetDisplayName(); 71var displayName = ValidationContext.ModelMetadata.GetDisplayName(); 93return otherProperty.GetDisplayName();
DataAnnotationsModelValidator.cs (1)
79DisplayName = metadata.GetDisplayName(),
DataTypeAttributeAdapter.cs (1)
41validationContext.ModelMetadata.GetDisplayName(),
FileExtensionsAttributeAdapter.cs (1)
46validationContext.ModelMetadata.GetDisplayName(),
MaxLengthAttributeAdapter.cs (1)
37validationContext.ModelMetadata.GetDisplayName(),
MinLengthAttributeAdapter.cs (1)
37validationContext.ModelMetadata.GetDisplayName(),
RangeAttributeAdapter.cs (1)
47validationContext.ModelMetadata.GetDisplayName(),
RegularExpressionAttributeAdapter.cs (1)
33validationContext.ModelMetadata.GetDisplayName(),
RequiredAttributeAdapter.cs (1)
39return GetErrorMessage(validationContext.ModelMetadata, validationContext.ModelMetadata.GetDisplayName());
StringLengthAttributeAdapter.cs (1)
49validationContext.ModelMetadata.GetDisplayName(),
ValidatableObjectAdapter.cs (1)
38DisplayName = context.ModelMetadata.GetDisplayName(),
ValidationAttributeAdapterOfTAttribute.cs (1)
77return Attribute.FormatErrorMessage(modelMetadata.GetDisplayName());
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (3)
MaxLengthAttributeAdapterTest.cs (2)
113var errorKey = metadata.GetDisplayName(); 118stringLocalizer.Setup(s => s[errorKey, metadata.GetDisplayName(), attribute.Length]).Returns(localizedString);
ValidationAttributeAdapterOfTAttributeTest.cs (1)
66var displayName = validationContext.ModelMetadata.GetDisplayName();
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultDisplayTemplates.cs (1)
235var label = propertyMetadata.GetDisplayName();
RemoteAttributeBase.cs (1)
148var errorMessage = GetErrorMessage(context.ModelMetadata.GetDisplayName());