<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0-rc.2.20475.5" />

System.ComponentModel.DataAnnotations.DisplayAttribute

public sealed class DisplayAttribute : Attribute
Provides a general-purpose attribute that lets you specify localizable strings for types and members of entity partial classes.
public bool AutoGenerateField { get; set; }

Gets or sets a value that indicates whether UI should be generated automatically in order to display this field.

public bool AutoGenerateFilter { get; set; }

Gets or sets a value that indicates whether filtering UI is automatically displayed for this field.

public string Description { get; set; }

Gets or sets a value that is used to display a description in the UI.

public string GroupName { get; set; }

Gets or sets a value that is used to group fields in the UI.

public string Name { get; set; }

Gets or sets a value that is used for display in the UI.

public int Order { get; set; }

Gets or sets the order weight of the column.

public string Prompt { get; set; }

Gets or sets a value that will be used to set the watermark for prompts in the UI.

public Type ResourceType { get; set; }

Gets or sets the type that contains the resources for the ShortName, Name, Prompt, and Description properties.

public string ShortName { get; set; }

Gets or sets a value that is used for the grid column label.

Initializes a new instance of the DisplayAttribute class.

public bool? GetAutoGenerateField()

Returns the value of the AutoGenerateField property.

public bool? GetAutoGenerateFilter()

Returns a value that indicates whether UI should be generated automatically in order to display filtering for this field.

public string GetDescription()

Returns the value of the Description property.

public string GetGroupName()

Returns the value of the GroupName property.

public string GetName()

Returns a value that is used for field display in the UI.

public int? GetOrder()

Returns the value of the Order property.

public string GetPrompt()

Returns the value of the Prompt property.

public string GetShortName()

Returns the value of the ShortName property.