Ouvert Fermé

How to use Audit on EF Relationships #2503


User avatar
0
Noura créé

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 Réponse (s)
  • User Avatar
    0
    enisn créé
    Équipe d'assistance .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 créé

    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 créé
    Équipe d'assistance 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 mars 25, 2024, 15:11