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

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.