I have a collection object:
Meeting{id, name, time, CreatedBy, UpdatedBy}
and a
MeetingAssignee{id, MeetingID, EmployeeId, CreatedBy, UpdatedBy)
The meeting, as the Aggregated Root, has an AssignEmployee method.
I was about to transfer the current user to the Meeting object when I call AssignEmployee so that it can update its audit fields accordingly.
But that doesn't seem right - does it? Obviously, I can publish audit fields and change them later - perhaps at the service level?
What is another preferred method for updating these fields?
Please note: we do not use Nhibernate, but a custom ORM that has nothing automatic in place.
Thanks.
source share