Skip to content

IReadonlyRepository.GetWithFilter

dogguts edited this page Apr 2, 2019 · 2 revisions

GetWithFilter(IRepositoryFilter<TEntity>, IRepositorySort<TEntity>, (int Page, int PageSize)?)

Get Entities by filter

GetWithFilter((IRepositoryFilter<TEntity> filter, IRepositorySort<TEntity> sorts), (int Page, int PageSize)?)

Obsolete! Get Entities by filter

GetWithFilter(IRepositoryFilter<TEntity>, IRepositorySort<TEntity>, (int Page, int PageSize)?)

Get Entities by filter

(IEnumerable<TEntity> Data, int Total) GetWithFilter(IRepositoryFilter<TEntity> filter, IRepositorySort<TEntity> sorts = null, (int Page, int PageSize)? paging = null)

Parameters

filter IRepositoryFilter<TEntity>

Filter specification

sorts IRepositorySort<TEntity>

Optional sort specification

paging (int Page, int PageSize)?

Optional The current Page and pageSize for paging

Returns

(IEnumerable<TEntity> Data, int Total)

Data: results matching the filter and sorted by sorts, paged by paging.
Total: total matches the filter produced (regardless of paging)

GetWithFilter((IRepositoryFilter<TEntity> filter, IRepositorySort<TEntity> sorts), (int Page, int PageSize)?)

Obsolete! Get Entities by filter

(IEnumerable<TEntity> Data, int Total) GetWithFilter((IRepositoryFilter<TEntity> filter, IRepositorySort<TEntity> sorts) specification, (int Page, int PageSize)? paging = null)

Parameters

specification (IRepositoryFilter<TEntity> filter, IRepositorySort<TEntity> sorts)

Filter and Sort specification

paging (int Page, int PageSize)?

Optional The current Page and pageSize for paging

Returns

(IEnumerable<TEntity> Data, int Total)

Data: results matching the filter and sorted by sorts, paged by paging.
Total: total matches the filter produced (regardless of paging)