A CI/CD pipeline diagram showing database migrations deployed as a separate stage before application deployment, with idempotent scripts and managed identities.

Stop Running dotnet ef database update in Production

Running migrations on application startup causes race conditions, security risks, and deployment failures in production. This guide shows how to deploy EF Core migrations as a separate CI/CD stage using idempotent scripts, migration bundles, and zero-downtime strategies like the Expand-Contract pattern.

January 20, 2026 · 10 min
A diagram showing multiple identical API requests with the same idempotency key, where only the first executes business logic while duplicates return cached responses.

Designing Idempotent APIs in ASP.NET Core

Network failures and retries are inevitable in distributed systems. Without idempotency, duplicate requests create double charges and data corruption. This guide shows how to implement idempotent APIs in ASP.NET Core using action filters, Redis, and idempotency keys to handle retries safely.

January 16, 2026 · 9 min
A side-by-side diagram comparing C# code. The left panel, labeled "BEFORE," shows an old-style static extension method highlighted in red. The right panel, labeled "AFTER," shows the new C# 14 syntax using an extension block and a property, highlighted in green.

C# 14 Extension Members: Cleaner Code

The era of the ‘Helper Class’ is over. C# 14 introduces Extension Members, allowing you to add properties, operators, and static methods to external types. Here is how to modernize your codebase.

December 7, 2025 · 5 min
Illustration showing hands controlling a marionette, labeled "ANEMIC MODEL: CONTROLLED BY SERVICES".

Avoid Anemic Domain Models

Stop writing C# classes that are just data bags. An anemic domain model scatters your business logic, leading to bugs and maintenance nightmares. Here’s how to fix it.

December 3, 2025 · 7 min

Integration Testing ASP.NET Core APIs The Right Way with WebApplicationFactory

A comprehensive guide to integration testing ASP.NET Core APIs with WebApplicationFactory. Learn to replace real databases, mock services, test authenticated endpoints, and build production-ready test suites.

November 16, 2025 · 7 min
×