28 references to DisplayMetadata
Microsoft.AspNetCore.Mvc.Core (24)
ModelBinding\Metadata\DefaultModelMetadata.cs (24)
159_additionalValues = new ReadOnlyDictionary<object, object>(DisplayMetadata.AdditionalValues); 176public override bool ConvertEmptyStringToNull => DisplayMetadata.ConvertEmptyStringToNull; 179public override string? DataTypeName => DisplayMetadata.DataTypeName; 186if (DisplayMetadata.Description == null) 191return DisplayMetadata.Description(); 196public override string? DisplayFormatString => DisplayMetadata.DisplayFormatStringProvider(); 203if (DisplayMetadata.DisplayName == null) 208return DisplayMetadata.DisplayName(); 213public override string? EditFormatString => DisplayMetadata.EditFormatStringProvider(); 231=> DisplayMetadata.EnumGroupedDisplayNamesAndValues; 234public override IReadOnlyDictionary<string, string>? EnumNamesAndValues => DisplayMetadata.EnumNamesAndValues; 237public override bool HasNonDefaultEditFormat => DisplayMetadata.HasNonDefaultEditFormat; 240public override bool HideSurroundingHtml => DisplayMetadata.HideSurroundingHtml; 243public override bool HtmlEncode => DisplayMetadata.HtmlEncode; 283public override bool IsEnum => DisplayMetadata.IsEnum; 286public override bool IsFlagsEnum => DisplayMetadata.IsFlagsEnum; 340public override string? NullDisplayText => DisplayMetadata.NullDisplayTextProvider(); 343public override int Order => DisplayMetadata.Order; 350if (DisplayMetadata.Placeholder == null) 355return DisplayMetadata.Placeholder(); 402public override bool ShowForDisplay => DisplayMetadata.ShowForDisplay; 405public override bool ShowForEdit => DisplayMetadata.ShowForEdit; 408public override string? SimpleDisplayProperty => DisplayMetadata.SimpleDisplayProperty; 411public override string? TemplateHint => DisplayMetadata.TemplateHint;
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (4)
41Assert.Same(metadata1.DisplayMetadata, metadata2.DisplayMetadata); 132Assert.Same(properties1[i].DisplayMetadata, properties2[i].DisplayMetadata);