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)

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

6 Answer(s)
  • User Avatar
    0
    ya-dev created

    Hi,

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    talhazengin created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ya-dev created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ya-dev 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.