Search code examples
c#linqlinq-to-sqllambdalinq-group

How do you change a linq group IQueryable<IEnumerable<T>> to IQueryable<T>?


How do you change a linq group IQueryable<IEnumerable<T>> to IQueryable<T> ? So that i can join the iqueryable with other entities?


Solution

  • That's what the SelectMany method is for:

    yourQueryable.SelectMany(x => x);