.NET tutorials

The best way to create email templates in .NET

The best way to create email templates in .NET

Learn how to generate reusable email HTML using Razor Views in ASP.NET Core with strongly-typed models.
The simplest way to secure a Minimal API (With Swagger)

The simplest way to secure a Minimal API (With Swagger)

Secure your .NET Minimal API quickly using API key authentication, with full Swagger support for testing and protecting endpoints.
Validate .NET configuration on startup

Validate .NET configuration on startup

Learn how to validate .NET configuration on startup using data annotations or FluentValidation, so your app fails fast and never ships with broken config.
EF Core transactions: Stop your data getting out of sync

EF Core transactions: Stop your data getting out of sync

Learn how Entity Framework Core transactions prevent data inconsistencies and how isolation levels affect behaviour in your applications.
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.
C# class types explained with examples

C# class types explained with examples

Learn the different C# class types with clear examples, common compiler errors, and explanations of abstract, sealed, static, partial, unsafe, and record classes.
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.