Skip to content

Commit

Permalink
Make ApplyFiltering, ApplySorting and ApplyPagination protected virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
ITDancer13 committed May 16, 2021
1 parent 7a48ba8 commit 73e67d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sieve/Services/SieveProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public IQueryable<TEntity> Apply<TEntity>(TSieveModel model, IQueryable<TEntity>
}
}

private IQueryable<TEntity> ApplyFiltering<TEntity>(TSieveModel model, IQueryable<TEntity> result,
protected virtual IQueryable<TEntity> ApplyFiltering<TEntity>(TSieveModel model, IQueryable<TEntity> result,
object[] dataForCustomMethods = null)
{
if (model?.GetFiltersParsed() == null)
Expand Down Expand Up @@ -345,7 +345,7 @@ private static Expression GetClosureOverConstant<T>(T constant, Type targetType)
return Expression.Constant(constant, targetType);
}

private IQueryable<TEntity> ApplySorting<TEntity>(TSieveModel model, IQueryable<TEntity> result,
protected virtual IQueryable<TEntity> ApplySorting<TEntity>(TSieveModel model, IQueryable<TEntity> result,
object[] dataForCustomMethods = null)
{
if (model?.GetSortsParsed() == null)
Expand Down Expand Up @@ -374,7 +374,7 @@ private IQueryable<TEntity> ApplySorting<TEntity>(TSieveModel model, IQueryable<
return result;
}

private IQueryable<TEntity> ApplyPagination<TEntity>(TSieveModel model, IQueryable<TEntity> result)
protected virtual IQueryable<TEntity> ApplyPagination<TEntity>(TSieveModel model, IQueryable<TEntity> result)
{
var page = model?.Page ?? 1;
var pageSize = model?.PageSize ?? Options.Value.DefaultPageSize;
Expand Down

0 comments on commit 73e67d3

Please sign in to comment.