DbContext and Entities

EF Core maps entity classes to tables, matching names by convention. A DbContext class lists a DbSet for each table and holds the connection. In ASP.NET Core, register it with AddDbContext and UseSqlServer, and controllers ask for it like any other service.

Updated

Cheat sheet: DbContext and Entities
Category
Entity Framework Core
Level
Journeyman
Tags
c-sharp, DbContext, DbSet, Entity (entity-framework), entity-framework, Navigation Property, Primary Key Convention