How to convert IQueryable <IQueryable <Page> to IQueryable <Page> with Linq

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

articlePages IQueryable<IQueryable<Page>>. but i need all the pages in IQueryable<Page>.

How to do it?

+3
source share
1 answer
var articlePages = categoryPages.SelectMany(x => x.ChildPages);
+6
source

All Articles