A cross join or Cartesian join is the basis for every other join. The following query will produce all of the combinations of two tables using LINQ
var query = from c in customers from p in products select new { c.CompanyName, p.ProductName };
Querying DataSet, you can write the following Query with dataset.
var query = from c in ds.Tables["Table1"].AsEnumerable() from p in ds.Ta...
No comments yet, be the first one to post comment.