.NET 10 introduces native LeftJoin and RightJoin methods to LINQ, eliminating the verbose GroupJoin + DefaultIfEmpty pattern previously required for left/right joins in Entity Framework Core. The new methods provide clearer intent, less code, and identical SQL output while making outer joins as straightforward as other LINQ

5m read timeFrom milanjovanovic.tech
Post cover image
Table of contents
What's a LEFT JOIN (in plain words)?The Old Way ( GroupJoin + DefaultIfEmpty )The New Way in EF 10: LeftJoinAlso New: RightJoinWrapping Up
2 Comments

Sort: