public static IEnumerable <T> InChunksOf <T>(this IOrderedQueryable <T> queryable, int chunkSize) { return(queryable.ChunksOfSize(chunkSize).SelectMany(chunk => chunk)); }