Skip/take support

Posts   
 
    
Sena
User
Posts: 22
Joined: 21-Jul-2021
# Posted on: 22-Apr-2022 11:34:12   

Hi,

Currently we are using the adapter.FetchEntityCollection and adapter.FetchProjection with page number and page size for pagination. Is there (in the near future?) also support for the skip-and-take pagination using those methods?

Best, Dick

Walaa avatar
Walaa
Support Team
Posts: 14986
Joined: 21-Aug-2005
# Posted on: 22-Apr-2022 15:28:40   

That's available in Linq and QuerySpec.

Sena
User
Posts: 22
Joined: 21-Jul-2021
# Posted on: 22-Apr-2022 15:36:36   

Walaa wrote:

That's available in Linq and QuerySpec.

Thanks for the response. We are not using both options thus far, no chance it will be available for the methods we currently use (and not have to rewrite all our queries)?

Dick

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39761
Joined: 17-Aug-2003
# Posted on: 23-Apr-2022 10:01:25   

You can mix queryspec / linq queries with other queries, you don't have to rewrite all your queries. Normally paging is done per page anyway, so it's not something that's always needed. So when you need to skip x rows and then fetch y rows where x & y don't fit in a fixed page setup, you can write the query as queryspec and use the offset/limit combo (or skip/take in a linq query).

The low level API won't get any facilities for this.

Frans Bouma | Lead developer LLBLGen Pro
Sena
User
Posts: 22
Joined: 21-Jul-2021
# Posted on: 25-Apr-2022 14:20:58   

Thanks, we will look into this and see what makes sense for us to do.

Dick