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