Open Closed

GetEntityChangesWithUsernameAsync returns no results #2747


User avatar
0
dannyb created
  • ABP Framework version: v5.1.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): **yes **/ no
  • Exception message and stack trace:
  • Steps to reproduce the issue:" GetEntityChangesWithUsernameAsync -> return no results. Whereas GetEntityChangesAsync has results.

Using the inbuilt IAuditLogsAppService service method I am not getting any results, whereas the GetEntityChangesAsync returns results. See the attached image showing the problem.


10 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I will check it out

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Entity change logging is not supported by the MongoDB provider. Other features work as expected.

    See https://docs.abp.io/en/abp/latest/Audit-Logging#database-provider-support.

    For reason: https://github.com/abpframework/abp/issues/5031#issuecomment-672629291

  • User Avatar
    0
    dannyb created

    Hi,

    Entity change logging is not supported by the MongoDB provider. Other features work as expected.

    See https://docs.abp.io/en/abp/latest/Audit-Logging#database-provider-support.

    For reason: https://github.com/abpframework/abp/issues/5031#issuecomment-672629291

    Hi there, thanks for the reply. We are not using Mongo, we are on EF Core / MS SQL.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Can you re-provide the information?

  • User Avatar
    0
    dannyb created

    Can you re-provide the information?

    The strike through indicates the system/selected item. Else that would mean we're using Angular and MVC.

    Regardless, I have edited to make it clearer.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Ok, I will check it again, thanks.

  • User Avatar
    0
    dannyb created

    Ok, I will check it again, thanks.

    Thank you, looking forward to your response.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    The EntityTypeFullName is required.

    For example:

    var result = await _auditLogsAppService.GetEntityChangesWithUsernameAsync(new EntityChangeFilter(){EntityId = log, EntityTypeFullName = typeof(IdentityRole).FullName});
    
  • User Avatar
    0
    dannyb created

    Hi,

    The EntityTypeFullName is required.

    For example:

    var result = await _auditLogsAppService.GetEntityChangesWithUsernameAsync(new EntityChangeFilter(){EntityId = log, EntityTypeFullName = typeof(IdentityRole).FullName}); 
    

    Thanks for the reply. What exactly am I to pass as the EntityTypeFullName. I've tried variations from the full entity name, with/without namespace etc.

  • User Avatar
    0
    dannyb created

    Nevermind, typo on my part! Resolved. Thanks for your help.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13