Exemple #1
0
 /// <summary>
 /// Enables to extend, replace or remove pagination that is being applied on a set of this resource type.
 /// </summary>
 /// <param name="existingPagination">
 /// An optional existing pagination, coming from query string. Can be <c>null</c>.
 /// </param>
 /// <returns>
 /// The changed pagination, or <c>null</c> to use the first page with default size from options.
 /// To disable paging, set <see cref="PaginationExpression.PageSize"/> to <c>null</c>.
 /// </returns>
 public virtual PaginationExpression OnApplyPagination(PaginationExpression existingPagination)
 {
     return(existingPagination);
 }
Exemple #2
0
        public Expression ApplySkipTake(PaginationExpression expression)
        {
            ArgumentGuard.NotNull(expression, nameof(expression));

            return(Visit(expression, null));
        }
Exemple #3
0
 public PaginationExpression OnApplyPagination(PaginationExpression existingPagination)
 {
     throw new NotImplementedException();
 }