dotnet core Force DbContext SaveChanges to throw exception during test Forcing exceptions from Entity Framework Core during integration tests using interceptors.
dotnet IDistributedCache (Redis) - remove by prefix Implementing prefix-based cache invalidation in Redis using a dotnet core, a custom IDistributedCache implementation and some Lua scripting.
dotnet core Compress HttpClient requests with GZIP By streaming the gzip compression instead of using MemoryStream, we can significantly reduce memory allocation and avoid OutOfMemoryExceptions with large payloads.
dotnet Read only properties on Domain object using Entity Framework Core Storing immutable domain objects directly with Entity Framework Core using value converters and private backing fields to handle read-only collections and custom types.
tips and tricks Don't reinvent the wheel - configuration Avoid creating custom environment helpers - use the built-in functionality instead.