linq to SQL查找多表的问题
请问如何用ling to SQL 查找多条记录。并如何获取去获取多条记录????
------解决方案--------------------
var q =
from e in db.Employees
join o in db.Books on e.EmployeeID equals o.EmployeeID into b
from x in b.DefaultIfEmpty()
select new
{
e.ID,
e.Name,
o.BookName
};
到实体集合