How do you create an audit trail for aggregate roots?
问题 I have read several articles online as well as several answers on StackOverflow about creating an audit trail for a database driven application. It seems that the most popular solution is to create an audit table for the table in question and use triggers to insert an audit record into the audit table. I can see how this would work well for simple entities whose data is contained in one table. What about aggregate roots that contain children? Example: Order is an aggregate root containing