.NET tutorials

Minimal APIs: Fix missing OpenAPI response documentation

Minimal APIs: Fix missing OpenAPI response documentation

Learn why Minimal APIs often miss OpenAPI response types and how to fix missing 404, 400, and 500 responses using TypedResults and Produces methods.
How to secure ASP.NET Core APIs with Basic Authentication

How to secure ASP.NET Core APIs with Basic Authentication

Learn how to implement Basic Authentication in ASP.NET Core Web APIs with Minimal APIs and controllers, ideal for securing internal APIs.
Swagger's missing in .NET 10 - How to add it back

Swagger's missing in .NET 10 - How to add it back

Swagger is missing in .NET 10. Learn why it was removed, how to add it back, and explore alternatives like Scalar, Redoc, Postman, and .http files.
How LeftJoin and RightJoin Work in EF Core .NET 10

How LeftJoin and RightJoin Work in EF Core .NET 10

Learn how LeftJoin and RightJoin work in EF Core .NET 10, replacing complex GroupJoin patterns and simplifying left and right joins in LINQ.
File logging in ASP.NET Core made easy with Serilog

File logging in ASP.NET Core made easy with Serilog

Learn how to add file logging to an ASP.NET Core app using Serilog, including setup, configuration, and writing logs to daily rolling files.
ASP.NET Core route constraints: A quick guide for developers

ASP.NET Core route constraints: A quick guide for developers

Learn ASP.NET Core route constraints in this quick guide for developers. Fix routing issues fast and improve API accuracy with simple, clear examples.
How to upload files in an ASP.NET Core Web API

How to upload files in an ASP.NET Core Web API

Learn how to upload files with IFormFile and IFormFileCollection using minimal APIs in ASP.NET Core, and how to generate antiforgery tokens.
Are C# 14's new features worth updating your app to .NET 10?

Are C# 14's new features worth updating your app to .NET 10?

Discover the new features in C# 14 - from extension members to the field keyword - and find out whether upgrading your app to .NET 10 is really worth it.
Read & write to a CSV file using a list in ASP.NET Core

Read & write to a CSV file using a list in ASP.NET Core

Learn how to read and write CSV files in ASP.NET Core using lists, including handling headers and mapping different header titles easily.
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.