var query = from p in publishers
select new
{
Publisher = p.Name,
Books = from b in books
where b.Publisher.Name == p.Name
select b
};
...全文
1685打赏收藏
这个linq 嵌套查询的 lambda扩展函数的写法 怎么写?
显示每个出版社下的所有图书 这个linq 嵌套查询的 lambda扩展函数的写法 怎么写? var query = from p in publishers select new { Publisher = p.Name, Books = from b in books where b.Publisher.Name == p.Name select b };