Joins in LINQ to SQL
- by rajbk
The following post shows how to write different types of joins in LINQ to SQL. I am using the Northwind database and LINQ to SQL for these examples. NorthwindDataContext dataContext = new NorthwindDataContext();
Inner Join
var q1 = from c in dataContext.Customers join o in dataContext.Orders on c.CustomerID equals o.CustomerID…