Anyone who has worked with dependency injection in .NET, might have registered something like this:
builder.Services.AddDbContext<AppDbContext>(options =>
options.UseSqlServer(connectionString));
Enter fullscreen mode
Exit fullscreen mode
Anyone who has worked with dependency injection in .NET, might have registered something like...
Anyone who has worked with dependency injection in .NET, might have registered something like this:
builder.Services.AddDbContext<AppDbContext>(options =>
options.UseSqlServer(connectionString));
Enter fullscreen mode
Exit fullscreen mode

The .NET dependency-injection lifetime bug that ships to production silently. Why AI assistants suggest it. And the one Cursor…

Imagine you are building a modern car. Instead of welding the engine directly to the chassis, you...

Hook When building local-first architectures, the instinct is often to tightly couple...

TL;DR A migration bundle packages every pending migration for one DbContext into a...

If you're already running MongoDB and you reach for ASP.NET Core Identity, the official story points...

Why independent deployment is the real boundary, why build-time composition keeps teams coupled, and...