/// <summary> /// Breaks a list of items into chunks of a specific size. Be aware that this method generates one additional /// sql query to get total number of collection elements. /// </summary> /// <param name="source">Source list.</param> /// <param name="chunkSize">Chunk size.</param> /// <returns>Enumeration of queryable collections.</returns> public static IEnumerable <IQueryable <T> > ChunkSelectRange <T>( this IQueryable <T> source, int chunkSize = DefaultChunkSize) { return(CollectionUtils.ChunkSelectRange(source, chunkSize)); }