Make Entity Framework Faster with Parameterized Queries
Culture-sensitive lowercasing can break string comparisons, as demonstrated by the Turkish dotless i, while `OrdinalIgnoreCase` remains culture agnostic.
Related pieces.
More from the same corner of the workbench.
Unit of Work with Entity Framework Core Done Right
Learn what the Unit of Work pattern is, why EF Core's DbContext already behaves like one, and when a thin abstraction helps. We walk through small, runnable C# examples that show single commit flows, explicit transactions, and resilient retries. You will see how to avoid partial saves, how to wire dependencies with clean lifetimes, and which pitfalls to skip when layering repositories and services.
4 min0 likes → Article / csharpMeasure Twice Allocate Once: Faster Lists in .NET
Lists grow by reallocating and copying, which adds hidden cost as data scales. This post shows why setting List capacity up front reduces allocations and improves cache behavior. You will see small runnable examples and practical patterns you can drop into production.
4 min1 like → Article / csharpVirtual vs Override vs Partial in C# Explained with Small Runnable Examples
Virtual, override and partial are tiny C# keywords with huge impact on design. This post explains how they work, when to use them, and where bugs appear. Learn the difference between override and new, why sealed override matters, and how partial classes and partial methods keep generated and hand written code happy. Every section comes with short, runnable snippets and real project tips.
4 min1 like →