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

System.ComponentModel.DataAnnotations.Schema.ColumnAttribute

public class ColumnAttribute : Attribute
Represents the database column that a property is mapped to.
public string Name { get; }

Gets the name of the column the property is mapped to.

public int Order { get; set; }

Gets or sets the zero-based order of the column the property is mapped to.

public string TypeName { get; set; }

Gets or sets the database provider specific data type of the column the property is mapped to.

public ColumnAttribute()

Initializes a new instance of the ColumnAttribute class.

public ColumnAttribute(string name)

Initializes a new instance of the ColumnAttribute class.