17 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.DataAnnotations (14)
CompareAttributeAdapter.cs (3)
36
var displayName = validationContext.ModelMetadata.
GetDisplayName
();
71
var displayName = ValidationContext.ModelMetadata.
GetDisplayName
();
93
return otherProperty.
GetDisplayName
();
DataAnnotationsModelValidator.cs (1)
79
DisplayName = metadata.
GetDisplayName
(),
DataTypeAttributeAdapter.cs (1)
41
validationContext.ModelMetadata.
GetDisplayName
(),
FileExtensionsAttributeAdapter.cs (1)
46
validationContext.ModelMetadata.
GetDisplayName
(),
MaxLengthAttributeAdapter.cs (1)
37
validationContext.ModelMetadata.
GetDisplayName
(),
MinLengthAttributeAdapter.cs (1)
37
validationContext.ModelMetadata.
GetDisplayName
(),
RangeAttributeAdapter.cs (1)
47
validationContext.ModelMetadata.
GetDisplayName
(),
RegularExpressionAttributeAdapter.cs (1)
33
validationContext.ModelMetadata.
GetDisplayName
(),
RequiredAttributeAdapter.cs (1)
39
return GetErrorMessage(validationContext.ModelMetadata, validationContext.ModelMetadata.
GetDisplayName
());
StringLengthAttributeAdapter.cs (1)
49
validationContext.ModelMetadata.
GetDisplayName
(),
ValidatableObjectAdapter.cs (1)
38
DisplayName = context.ModelMetadata.
GetDisplayName
(),
ValidationAttributeAdapterOfTAttribute.cs (1)
77
return Attribute.FormatErrorMessage(modelMetadata.
GetDisplayName
());
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultDisplayTemplates.cs (1)
235
var label = propertyMetadata.
GetDisplayName
();
RemoteAttributeBase.cs (1)
148
var errorMessage = GetErrorMessage(context.ModelMetadata.
GetDisplayName
());