Geeks With Blogs
Berthin Ramampiandra
Cross join consists to perform a Cartesian product of two sets or sequences. The following example shows a simple Cartesian product of the sets A and B: A (a1, a2) B (b1, b2) => C (a1 b1, a1 b2, a2 b1, a2, b2 ) is the Cartesian product's result. Linq to Sql allows using Cross join operations. Cross join is not equijoin, means that no predicate expression ......

First() and FirstOrDefault() are two extension methods of the Enumerable class. Extension method is a static method that we can call from an instance object which implement IEnumerable interface. Lets make an analysis of the following simple example. 1:int[] number = { 1, 5, 6, 8, 20, 15, 34, 67, 98, 12, 23 }; 2:var num = number.Where(n => n > ......

Copyright © berthin | Powered by: GeeksWithBlogs.net | Join free