Latest C# Posts
Understanding Middleware in ASP.NET Core
Middleware is one of the fundamental building blocks of ASP.NET Core. It sits between an incoming HTTP request and your application, allowing you to inspect, modify or respond to requests before they reach your application code. Understanding how middleware works, and especially the order in which it runs, is essential when building reliable ASP.NET Core applications.

Logging Strategies That Scale
Logging is easy when an application is small, but as systems grow, so does the amount of information they generate. Without a sensible strategy, logs can quickly become noisy, expensive and difficult to search. In this article, we look at practical logging strategies for modern .NET applications, covering structured logging, log levels, performance, centralisation and how to make logs genuinely useful when troubleshooting production systems.

Background Services in ASP.NET Core
Background services are an essential part of many ASP.NET Core applications, allowing work to run independently of incoming HTTP requests. From processing queues and sending emails to performing scheduled maintenance, they provide a clean way to handle long-running or recurring tasks. In this article, we’ll explore how background services work, when to use them, and how to build them correctly in ASP.NET Core.

Minimal APIs vs Controllers: A Real Comparison
Minimal APIs and Controllers both provide powerful ways to build HTTP APIs with ASP.NET Core, but they take very different approaches. Minimal APIs focus on simplicity and reducing ceremony, while Controllers offer a structured approach that can be better suited to larger applications. In this article, we take a practical look at both approaches and compare their strengths, weaknesses and ideal use cases.

Handling Soft Deletes in EF Core
When working with business applications, permanently deleting data is often undesirable. Records may need to be restored, audited or retained for compliance purposes. Soft deletes provide a simple solution by marking records as deleted rather than removing them from the database. In this article, we'll explore how to implement soft deletes in Entity Framework Core using query filters and save interception techniques.

Popular in C#
Logging Strategies That Scale
Admin in C#
Background Services in ASP.NET Core
Admin in C#
Become a member
Get the latest news right in your inbox. It's free and you can unsubscribe at any time. We hate spam as much as we do, so we never spam!
