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

.NET code examples

Learn C# basics
Learn C# basics

Download a C# code example to help you learn variables, types, conditionals, arrays, lists, loops, classes, structs, interfaces, enums and static classes.

Keyset vs offset pagination in EF Core
Keyset vs offset pagination in EF Core

See how keyset and offset pagination are implemented in EF Core, how indexes affect performance, so you decide which approach suits your application.

EF Core temporal tables in an ASP.NET Core Web API
EF Core temporal tables in an ASP.NET Core Web API

Download an EF Core temporal table code example in an ASP.NET Core Web API with configuration and historic data queries

Using exception handlers in an ASP.NET Core Web API
Using exception handlers in an ASP.NET Core Web API

See how to add exception handling to your ASP.NET Core Web API using IExceptionHandler, including validation errors and custom status codes.

.NET currency converter built by Claude Code from a spec
.NET currency converter built by Claude Code from a spec

Download the Claude Code .NET currency converter project. Includes the spec.md file used to generate a clean architecture ASP.NET Core app.

Using Claude Code to generate C# code in a .NET project
Using Claude Code to generate C# code in a .NET project

Get the CLAUDE.md file and .NET project we used to migrate Controllers over to Minimal APIs using Claude Code prompts.

An ASP.NET Core app built with Claude AI
An ASP.NET Core app built with Claude AI

Get the technical documents and Claude project we used to build a real ASP.NET Core app from scratch using AI. Download and use them yourself.

Reusable PagedResults type for Entity Framework Core
Reusable PagedResults type for Entity Framework Core

Download a code example that includes a reusable PagedResults type and query extension, ideal for pagination in Entity Framework Core.

Automated SQL scripts using Entity Framework Core migrations
Automated SQL scripts using Entity Framework Core migrations

Learn how to add Entity Framework Core migrations in an Web API and worker project and use it to automate SQL scripts across all environments.

Clean architecture in a Web API endpoint
Clean architecture in a Web API endpoint

Learn how to refactor a Web API endpoint using clean architecture with validation, services, repositories and cleaner code structure.