Open Closed

How to use Audit on EF Relationships #2503


User avatar
0
Noura created

I have two Entity, Order Entity and Item Entity, and the relationship between them is one-to-many [Order has many Items].

I used Audit to track all Entity changes, I got the create, update and delete changes on each entity.

but when I deleted an item object from the order object I can't track this change in the audit, so can I track these changes on an entity[Order entity] when I have EF Relationships.

  • ABP Framework version: v5.1
  • UI type: MVC
  • DB provider: EF Core

3 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi @Noura

    Can you please just provide information that if is your Item entity inherits from Entity or AuditedEntity ?

  • User Avatar
    0
    Noura created

    Hi @Noura

    Can you please just provide information that if is your Item entity inherits from Entity or AuditedEntity ?

    hi @enisn Item Entity inherits from FullAuditedAggregateRoot

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @Noura,

    Current auditing system doesn't track navigation properties. You can create a feature request at ABP Framework GitHub repository.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11