A database table stores related records in rows and columns. In EF Core code-first, an entity included in a DbContext can generate a table; a Book entity maps to a Books table. section 5.2
Key implementation details:
- A table commonly uses a primary key to identify rows uniquely. EF Core conventionally treats an entity’s Id property as its key; a [Key] attribute can designate another property, such as ISBN. section 5.2
- A DbSet<Book> property in a DbContext makes the Books table accessible to the application. section 5.2
The generated Books table illustrates the entity-to-table mapping. section 5.2











