System.ComponentModel.DataAnnotations.KeyAttribute public sealed class KeyAttribute : Attribute Denotes one or more properties that uniquely identify an entity. Documentation Code public KeyAttribute() Initializes a new instance of the KeyAttribute class.