Using HasKey to Configure a Key Property in the Fluent API
Configuring Database-Generated Options with Data Annotations
Configuring Database-Generated Options with the Fluent API