private static IPageable <TEntity> AsPaging <TEntity>(this IOrderedQueryable <TEntity> orderedQuery,
                                                              Action <PagingDescriptor> computeAction)
            where TEntity : class
        {
            orderedQuery.NotNull(nameof(orderedQuery));
            computeAction.NotNull(nameof(computeAction));

            return(orderedQuery.AsPagingCore(computeAction));
        }
        private static ValueTask <IPageable <TEntity> > AsPagingAsync <TEntity>(this IOrderedQueryable <TEntity> orderedQuery,
                                                                                Action <PagingDescriptor> computeAction, CancellationToken cancellationToken = default)
            where TEntity : class
        {
            orderedQuery.NotNull(nameof(orderedQuery));
            computeAction.NotNull(nameof(computeAction));

            return(new ValueTask <IPageable <TEntity> >(Task.Run(() => orderedQuery.AsPagingCore(computeAction), cancellationToken)));
        }