Left join w LINQ

var results = from c in db.CUSTOMER                         
                     join o in db.ORDER
                          on c.CustomerId equals o.CustomerId into joinedCustOrder
                          from order in joinedCustOrder.DefaultIfEmpty()
                      select new
                      {
                         Order = order,
                         Customer = c
                      };
Advertisements