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

前端 未结 5 1867
无人及你
无人及你 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:20

    Sorting and paging are data functions. It should go in the repository.

提交回复
热议问题