Part 25 Cross Join in LINQ04:33

  • 0
Published on January 16, 2018

The following are the different types of joins in LINQ
Group Join – Part 21
Inner Join – Part 22
Left Outer Join – Part 24
Cross Join – We will discuss in this video

In this video we will discuss implementing CROSS JOIN in LINQ.

Cross join produces a cartesian product i.e when we cross join two sequences, every element in the first collection is combined with every element in the second collection. The total number of elements in the resultant sequence will always be equal to the product of the elements in the two source sequences. The on keyword that specfies the JOIN KEY is not required.

In this video we will understand implementing Cross Join with an example.

To implement Cross Join using extension method syntax, we could either use SelectMany() method or Join() method

Tags:, , , ,
Enjoyed this video?
"No Thanks. Please Close This Box!"