3
var page = pagesRepository.GetPages();
var categoryPages = page.ChildCategoryPages;
var articlePages = categoryPages.Select(x => x.ChildPages);

articlePagesIQueryable<IQueryable<Page>>。但我需要IQueryable<Page>.

这该怎么做?

4

1 回答 1

6
var articlePages = categoryPages.SelectMany(x => x.ChildPages);
于 2012-04-20T05:49:00.590 回答