System.ComponentModel.DataAnnotations.EnumDataTypeAttribute public sealed class EnumDataTypeAttribute : DataTypeAttribute Enables a .NET Framework enumeration to be mapped to a data column. Documentation Code public Type EnumType { get; } Gets or sets the enumeration type. public EnumDataTypeAttribute(Type enumType) Initializes a new instance of the EnumDataTypeAttribute class.