bitfoundation / bitplatform

Build all of your apps using what you already know and love ❤️
https://bitplatform.dev
MIT License
1.07k stars 222 forks source link

Paging/ Filtering and Sorting in Repository for WebAPI #110

Closed behzad888 closed 3 years ago

behzad888 commented 6 years ago

Do you have any idea to implement pagination options?

I have been used SharpRepository query options, It's very useful.

ysmoradi commented 6 years ago

We already have support for OData on top of both asp.net & asp.net core with swagger functionality included. It supports paging/filtering/sorting/aggregation/grouping in a standard way, so there are lots of rad stuffs out there with odata support, for example dev express js & kendo js have support for odata. We also have a code generator which generates client side proxy for you automatically. Check https://docs.bit-framework.com/docs/bit-server-side/odata.html and https://github.com/ysmoradi/BitSampleApp

behzad888 commented 6 years ago

Thanks for your time, but I meant Web API. I cannot use OData actually. I want to know. Do you have any plan for paging/filtering/sorting on top of the repository in the core section for web API scenarios?

ysmoradi commented 6 years ago

Unfortunately no. But I know kendo has something for this. You can use it on server side, without using that in client side.

ysmoradi commented 6 years ago

Why you can't use OData?

behzad888 commented 6 years ago

because We have an integration between multiple old modules and our accessibility is limited to change all parts, We can just change the UI part!

BTW, I also have #95 error in OData controllers!

Thanks in Advance!