Joins in LINQ to SQL 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 Joinvar q1 = from c in dataContext.Customers join o in dataContext.Orders on c.CustomerID equals o.CustomerID select new { c.CustomerID, c.ContactName, o.OrderID, o.OrderDate ...
|
8
Shouts |
|
|||
No comments yet, be the first one to post comment.