AuditLog Events in EventSourcing

39 views Asked by At

I'm building an dotnet application where I have multiple entities with diverses relationships. But I'm strugling with the content inside my events for save in my eventstore.

In this case I want to have in my events, only the changes that ocurred in my aggregate root. Let's suppose that I have a Customer (aggregate root) with many Addresses, and an user changed one property in an address. In my "CustomerEvent", I want to have only the change that the user did.

How can I do it?

I tried using change tracker from EFCore, using reflection for saving the log from my events.

0

There are 0 answers