Posts

GitHub Index

These are the posts in the series: A GitHub Actions Pipeline to Generate OpenAPI Documentation

ASP.NET Core Multitenancy Index

These are the posts in the series: Multitenancy Techniques for EF Core Multitenancy Techniques for ASP.NET Core Multitenancy Techniques for the UI in ASP.NET Core Multitenancy Techniques for the Business Logic in ASP.NET Core (TBD)

Java Versus C# Index

These are the posts in the series: Java vs C# - Part 1 Java vs C# - Part 2 Java vs C# - Part 3 Java vs C# - Part 4 (TBD)

EF Core Pitfalls Index

These are the posts in the series: Entity Framework Core Pitfalls: Calling DB Functions in LINQ Queries as Extension Methods Entity Framework Core Pitfalls: Asynchronous vs Synchronous Calls and Interceptors Entity Framework Core Pitfalls: Getting a Single Record by Key

ASP.NET Core Pitfalls Index

These are the posts in the series: ASP.NET Core Pitfalls – Posting a String ASP.NET Core Pitfalls - Action Constraint Order ASP.NET Core Pitfalls - Content Type Mismatch

ASP.NET Core Extension Points Index

These are the posts in the series: ASP.NET Core Extension Points - Core ASP.NET Core Extension Points - MVC ASP.NET Core Extension Points - Minimal API (TBD) ASP.NET Core Extension Points - Razor Pages (TBD)

.NET Synchronisation APIs Index

These are the posts in the series: .NET Synchronisation APIs - Part 1 - In-Process Synchronisation .NET Synchronisation APIs - Part 2 - Out-of-Process Synchronisation .NET Synchronisation APIs - Part 3 - Distributed Synchronisation (TBD)

AI and LLMs in .NET Index

These are the posts in the series: Generating Structured Code Using Azure, OpenAI and .NET Using LLMs and MCP in .NET A .NET Agent Orchestration Framework - Introduction A .NET Agent Orchestration Framework - The Orchestrator

Series of Posts

This is a permanent post for listing the series of posts that are still ongoing, in no particular order: Topic Status .NET AI & LLMs Work in progress .NET Synchronisation APIs Work in progress (2 missing) ASP.NET Core Work in progress ASP.NET Core Extension Points Work in progress ASP.NET Core Multitenancy Work in progress (1 missing) ASP.NET Core Pitfalls Work in progress C#/ .NET Work in progress EF Core Work in progress EF Core Pitfalls Work in progress GitHub Work in progress Java ...

Less Known LINQ Methods

Introduction LINQ extension methods are pretty cool and they make our lives much easier. They are implemented as .NET extension methods over the Enumerable class in the System.Linq namespace and as usual they all apply to IEnumerable<T> sequences. This time I'll be talking about some LINQ methods that are not so commonly used (as per my understanding). Not sure about you guys, but sometimes I don't even remember that some of these exist. Aggregate/AggregateBy Aggregate applies an accumulator function over a sequence, reducing it to a single value. AggregateBy (.NET 9+) does the same but groups by a key first, producing one accumulated result per key. // Aggregate var product = new[] { 1, 2, 3, 4 }.Aggregate((acc, x) => acc * x); // 24 // AggregateBy var words = new[] { "apple", "ant", "bear", "bee" }; var lengthSums = words.AggregateBy( keySelector: w => w[0], seed: 0, func: (acc, w) => acc + w.Length...