Open Closed

How to get all the data (bulk) from GetListAsync method in an Application Service? #103


User avatar
0
talhazengin created

Abp suite CRUD code generation creates GetListAsync methods in Applications Services, but this method gives paged results.

Is there a way to get all the data with this method without implementing a new GetList method?

Task<PagedResultDto<EntityDto>> GetListAsync(GetEntityInput input)


6 Answer(s)
  • User Avatar
    0
    yilmaz.atalar created

    Hi,

    You can do that by overriding "ApplyPaging" method of your CrudAppService.

  • User Avatar
    0
    talhazengin created

    There is no such method named "ApplyPaging" in abstract class "Volo.Abp.Application.Services.ApplicationService".

  • User Avatar
    0
    yilmaz.atalar created

    Is it possible to configure your service to extend CrudAppService? Then you can override ApplyPaging method.

  • User Avatar
    0
    talhazengin created

    As far as i can see, things have changed. We used code generation with early 2.* versions. So before this there were only ApplicationService. Anyway our system now uses old mechanism.

  • User Avatar
    0
    yilmaz.atalar created

    I've suspected that something is weird. Because abp suite should not generate services by extending ApplicationService class. I think your problem will be easily solved by converting services to extend CrudAppService.

  • User Avatar
    0
    alper created
    Support Team Director

    hi Talha,

    Suite generates only PagedResult action. So if you have a requirement to get all records, you can simply send a big maxResultCount. http://sample.com/api/identity/users?maxResultCount=99999

    Or create a new action to retrieve all records without paging.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on August 28, 2025, 08:29