摘要: 1、左连接:var LeftJoin = from emp in ListOfEmployees join dept in ListOfDepartment on emp.DeptID equals dept.ID into JoinedEmpDept from dept in JoinedEmpDept.DefaultIfEmpty() select new { EmployeeName = emp.Name, DepartmentName = dept != null ? dept.Name : null };2、右连接:var RightJoin = from dept in ListO 阅读全文
posted @ 2013-10-15 18:10 狄大人 阅读(261) 评论(0) 推荐(0) 编辑