diff --git a/Sieve/Services/SieveProcessor.cs b/Sieve/Services/SieveProcessor.cs index ae75643..275e47b 100644 --- a/Sieve/Services/SieveProcessor.cs +++ b/Sieve/Services/SieveProcessor.cs @@ -163,7 +163,7 @@ public IQueryable Apply(TSieveModel model, IQueryable } } - private IQueryable ApplyFiltering(TSieveModel model, IQueryable result, + protected virtual IQueryable ApplyFiltering(TSieveModel model, IQueryable result, object[] dataForCustomMethods = null) { if (model?.GetFiltersParsed() == null) @@ -345,7 +345,7 @@ private static Expression GetClosureOverConstant(T constant, Type targetType) return Expression.Constant(constant, targetType); } - private IQueryable ApplySorting(TSieveModel model, IQueryable result, + protected virtual IQueryable ApplySorting(TSieveModel model, IQueryable result, object[] dataForCustomMethods = null) { if (model?.GetSortsParsed() == null) @@ -374,7 +374,7 @@ private IQueryable ApplySorting(TSieveModel model, IQueryable< return result; } - private IQueryable ApplyPagination(TSieveModel model, IQueryable result) + protected virtual IQueryable ApplyPagination(TSieveModel model, IQueryable result) { var page = model?.Page ?? 1; var pageSize = model?.PageSize ?? Options.Value.DefaultPageSize;