<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0-preview.2.20160.6" />

System.ComponentModel.DataAnnotations.DisplayColumnAttribute

Specifies the column that is displayed in the referred table as a foreign-key column.
public string DisplayColumn { get; }

Gets the name of the column to use as the display field.

public string SortColumn { get; }

Gets the name of the column to use for sorting.

public bool SortDescending { get; }

Gets a value that indicates whether to sort in descending or ascending order.

public DisplayColumnAttribute(string displayColumn)

Initializes a new instance of the DisplayColumnAttribute class by using the specified column.

public DisplayColumnAttribute(string displayColumn, string sortColumn)

Initializes a new instance of the DisplayColumnAttribute class by using the specified display and sort columns.

public DisplayColumnAttribute(string displayColumn, string sortColumn, bool sortDescending)

Initializes a new instance of the DisplayColumnAttribute class by using the specified display column, and the specified sort column and sort order.