8
Shouts

Joins in LINQ to SQL - Raj Kaimal

published 1164 days, 4 hours, 43 minutes ago posted by KhaledKhaled 1164 days, 19 hours, 36 minutes ago
Sunday, March 14, 2010 12:49:12 PM GMT Saturday, March 13, 2010 9:56:31 PM GMT

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 ...

category: How To | clicked: 1 | | source: weblogs.asp.net | show counter code