Açık Kapalı

How to use Audit on EF Relationships #2503


User avatar
0
Noura oluşturuldu

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 Cevap
  • User Avatar
    0
    enisn oluşturuldu
    Destek Takımı .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 oluşturuldu

    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 oluşturuldu
    Destek Takımı 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 Mart 25, 2024, 15:11