Getting All the Results in LINQ with Methods

added by DotNetKicks
4/7/2017 9:49:44 PM

1 Kicks, 292 Views

Practical .NET Peter follows up on advice for joining collections with LINQ and getting all of the results, but this time, he uses the method-based syntax. A little while back, I did a column on how to join two collections in LINQ to generate queries like, "Get me all of the customers, with their salesorders (if they have any)," or, "Get me all of the customers who have no salesorders."