.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

KeyAttribute Constructors

Applied to properties of non-persistent classes. Specifies that a target property is a key property.
Name Description
KeyAttribute() Initializes a new instance of the KeyAttribute class.
See Also