Jerry YehConsultingExecutiveBlog

Articles

繁體中文 English

ASP.NET Core Null Responses and Model Binding: Build a Testable API Contract

Explain how ASP.NET Core handles raw null, empty arrays, JsonResult, and unknown JSON members, with a reproducible .NET 9 sandbox test.

ASP.NET Core .NET 9 Model Binding API Design Integration Testing
2026-08-22

ASP.NET Core DI Container Pitfalls: Avoid BuildServiceProvider and Lifetime Mismatches

Learn why BuildServiceProvider creates a second ASP.NET Core DI container, how scoped and singleton lifetimes fail, and how to verify fixes on .NET 9.

ASP.NET Core .NET 9 Dependency Injection BuildServiceProvider Service Lifetimes
2026-08-21
© Jerry Yeh · Contact