Open Closed

From Where we will get the EntityId in auditloggingservice.abpentitychanges #8923


User avatar
0
Karunakar created
  • ABP Framework version: Latest

  • UI Type: Angular

  • Database System: EF Core (MySQL)

  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

  • Exception message and full stack trace: Where I will get the EntityId present in table auditloggingservice.abpentitychanges

  • Steps to reproduce the issue: Login to auditloggingservice.abpentitychanges there is a column named EntityId.


4 Answer(s)
  • User Avatar
    1
    EngincanV created
    Support Team .NET Developer

    Hi, you need to enable entity history and then it will save entity changes for the relevant entities and the EntityId column will be filled with the changed entities Id.

    Please refer to the documentation: https://abp.io/docs/latest/framework/infrastructure/audit-logging#entity-history-selectors

  • User Avatar
    0
    Karunakar created

    Yes, We are already enabled and all the audits are getting in to the tables but how we will know that belongs to which entity? In which table that entity relationship will found.
    image.png

  • User Avatar
    0
    Karunakar created

    the two entity id's are different for same Address entityimage.png

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    the two entity id's are different for same Address entityimage.png

    If your address entity has a navigation property and the change made in the related property, this might be the reason for that.

    Yes, We are already enabled and all the audits are getting in to the tables but how we will know that belongs to which entity? In which table that entity relationship will found.

    In the audit logging page, you can switch to the Entity Change tab and see the details.

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.2.0-preview. Updated on March 13, 2025, 04:08