Where does paging, sorting, etc go in repository pattern?

前端 未结 5 1758
无人及你
无人及你 2021-02-01 07:04

Where do we put the logic for paging and sorting data in an asp.net repository pattern project?

Should it go in the service layer or put it in the controller and have th

5条回答
  •  梦如初夏
    2021-02-01 07:19

    I believe paging should go in the repository. See this answer I posted on another question.

    Repositories and persistence ignorance again

提交回复
热议问题