Learn Minimal APIs from start to finish. Perfect for beginners.

Entity Framework tutorials

Build a .NET 10 Web API - Minimal APIs, EF Core & SQL Server
Build a .NET 10 Web API - Minimal APIs, EF Core & SQL Server

Build a .NET 10 Web API with Minimal APIs, Entity Framework Core and SQL Server, using Clean Architecture and FluentValidation.

Slow pagination in EF Core? Try keyset pagination
Slow pagination in EF Core? Try keyset pagination

Learn how keyset pagination works in Entity Framework Core, how it compares to offset pagination, and how indexes can dramatically improve your pagination performance.

Track every EF Core record change with temporal tables
Track every EF Core record change with temporal tables

Learn how to track every change to your EF Core records using SQL Server temporal tables, with examples for querying the history.

PagedResults in EF Core: One class, endless reuse
PagedResults in EF Core: One class, endless reuse

Learn how to build a reusable PagedResults class in .NET that works with Entity Framework Core and supports multiple entity types.

EF Core without migrations - it's only a matter of time
EF Core without migrations - it's only a matter of time

Learn why EF Core without migrations is a disaster. Learn how to setup, configure, and deploy using migrations to keep databases consistent across environments.

EF Core transactions: Stop your data getting out of sync
EF Core transactions: Stop your data getting out of sync

Learn how to use transactions in Entity Framework Core to ensure multiple database operations either all succeed or all roll back, keeping your data consistent.

Why your Entity Framework Core app needs query filters
Why your Entity Framework Core app needs query filters

Discover how EF Core query filters enforce global rules, simplify multitenancy, and clean up queries to stop sensitive data leaking into production.

How LeftJoin and RightJoin Work in EF Core .NET 10
How LeftJoin and RightJoin Work in EF Core .NET 10

Learn how to use the new LeftJoin and RightJoin LINQ methods introduced in EF Core for .NET 10, replacing the verbose GroupJoin and SelectMany pattern.

Add request logging to a database in an ASP.NET Core Web API
Add request logging to a database in an ASP.NET Core Web API

Learn how to add request logging to a database in an ASP.NET Core Web API using Entity Framework Core to effectively monitor and analyse API traffic.

Use EF Core to easily save dates as UTC & show in local time
Use EF Core to easily save dates as UTC & show in local time

Learn how to create a ValueConverter in Entity Framework Core to save dates as UTC in the database & convert them back to your local time zone in ASP.NET Core.