mirror of
https://github.com/Biarity/Sieve.git
synced 2024-12-04 19:16:24 +01:00
This commit is contained in:
parent
ec6c310bf1
commit
7542ec0fbf
@ -163,7 +163,7 @@ namespace Sieve.Services
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private IQueryable<TEntity> ApplyFiltering<TEntity>(TSieveModel model, IQueryable<TEntity> result,
|
protected virtual IQueryable<TEntity> ApplyFiltering<TEntity>(TSieveModel model, IQueryable<TEntity> result,
|
||||||
object[] dataForCustomMethods = null)
|
object[] dataForCustomMethods = null)
|
||||||
{
|
{
|
||||||
if (model?.GetFiltersParsed() == null)
|
if (model?.GetFiltersParsed() == null)
|
||||||
@ -343,7 +343,7 @@ namespace Sieve.Services
|
|||||||
return Expression.Convert(hoistedConstant.Body, targetType);
|
return Expression.Convert(hoistedConstant.Body, 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)
|
object[] dataForCustomMethods = null)
|
||||||
{
|
{
|
||||||
if (model?.GetSortsParsed() == null)
|
if (model?.GetSortsParsed() == null)
|
||||||
@ -372,7 +372,7 @@ namespace Sieve.Services
|
|||||||
return result;
|
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 page = model?.Page ?? 1;
|
||||||
var pageSize = model?.PageSize ?? Options.Value.DefaultPageSize;
|
var pageSize = model?.PageSize ?? Options.Value.DefaultPageSize;
|
||||||
|
Loading…
Reference in New Issue
Block a user