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

.NET code examples

Read appsettings.json config in ASP.NET Core
Read appsettings.json config in ASP.NET Core

Download the source code and read the appsettings.json file in an ASP.NET Core MVC application. Bind using the options pattern.

Dynamic queries using LINQ expressions
Dynamic queries using LINQ expressions

Writing dynamic queries for Entity Framework. A sample .NET 5 MVC application, showing examples of LINQ expressions.

Create your own file logger
Create your own file logger

An ASP.NET Core for .NET 5 Web API which extends .NET Core's logging feature to log to text files in a HostedService.