Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

DbContext

The EF Core object that is your session with the database.

A DbContext represents a unit of work with a database: it exposes DbSet properties, tracks changes, and saves them in a transaction with SaveChanges.

Examples

  • class ShopContext : DbContext with public DbSet<Order> Orders => Set<Order>();

Read the full section →