F
F
FairyFox57002020-04-21 07:38:58
ASP.NET
FairyFox5700, 2020-04-21 07:38:58

At what level in a three-tier architecture should pagination, filtering and sorting be?

Where should I place pagination, sorting and filtering.
All this should be done by the data layer (repository)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ayazer, 2020-04-21
@FairyFox5700

of course, because the repository must know how to compose the skl (or what parameters to pass to the orm so that it generates the desired request).
you can go from the opposite - if the repository does not know anything about pagination / filtering, then you will need to get all the data from the database each time so that you can then select only those that need to be displayed. looks gross, doesn't it?)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question