BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
Open Closed

IQueryable method implementation not found in some Volo.Abp modules #7789


User avatar
0
onder created

Hello,

As you see the picture above;

  • In the first green mark, it shows that Volo.Abp.AuditLogging.IAuditLogRepository has GetQueryableAsync method due to that IReadOnlyRepository interface is inheriting. Everything is OK in this part.
  • But, in the second mark, I need the IQueryable method that returns all entity change list. AuditLogRepository doesn't provide that.
  • in the last mark, I need also the IQueryable method that returns all security logs. To do that, we have SecurityLogRepository in the Volo.Abp.Identity assembly. But IReadOnlyRepository interface is not inheriting from the Volo.Abp.Identity.IIdentitySecurityLogRepository interface, that is why we dont use the GetQueryableAsync method

The affected database tables are; AbpEntityChanges, AbpEntityPropertyChanges, AbpSecurityLogs.

Could you help me solve this IQueryable implementation issue? Thanks in advance.

<br>

  • ABP Framework version: 8.2.0
  • UI Type: Angular /
  • Database System: PostgreSQL

4 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    you can try reference Volo.Abp.EntityFrameworkCore package in the Application project

    var entityChangeQueryable = (await _auditLogRepository.GetDbContextAsync()).Set<EntityChange>().AsQueryable();
    var securityLogQueryable = (await _identitySecurityLogRepository.GetDbSetAsync()).AsQueryable();
    
  • User Avatar
    0
    onder created

    Thanks for answering. it's solved the issue, but last thing is that I want to get entitychanges info that includes username property so I've tried

    var entityChangeQueryable = (await _auditLogRepository.GetDbContextAsync()).Set<EntityChangeWithUsername>().AsQueryable();

    but "EntityChangeWithUsername" entity didn't work, how can I use it?

  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    EntityChangeWithUsername is not an entity, just a class

  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    you can check ABP how do use it. https://github.com/abpframework/abp/blob/dev/modules/audit-logging/src/Volo.Abp.AuditLogging.EntityFrameworkCore/Volo/Abp/AuditLogging/EntityFrameworkCore/EfCoreAuditLogRepository.cs#L235

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.1.0-preview. Updated on November 20, 2025, 09:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.