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

System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute

Specifies how the database generates values for a property.

Gets or sets the pattern used to generate values for the property in the database.

public DatabaseGeneratedAttribute(DatabaseGeneratedOption databaseGeneratedOption)

Initializes a new instance of the DatabaseGeneratedAttribute class.