You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I mean that eg. I have Milestone, then Milestone has configuration stored in a property of name Configuration and type of MilestoneConfiguration.
When I change some in milestone and/or his configuration I would like to get one change event and create one record on the audit log.
Is it any way to get it? Unfortunately, now I have information only for basic properties like "SuggesttedDate" and if I want to log configuration I have to add a new mapping but I won't do that because I would like to have only one big entry in the log table. When I have separate mappings I occurrence many entries with one save so it's not good for me.
public class Milestone : BaseEntity, IDeepCopyable<Milestone>, IUpdateable<Milestone>
{
public Guid SubmissionId { get; protected set; }
public Submission Submission { get; protected set; }
public DateTime? SuggestedDate { get; protected set; }
public DateTime? PlannedDate { get; protected set; }
public DateTime? CompletedDate { get; protected set; }
public MilestoneConfiguration Configuration { get; protected set; }
(...)
}
public class MilestoneConfiguration : ValueObject<MilestoneConfiguration>, IDeepCopyable<MilestoneConfiguration>
{
public MilestoneConfigurationPhase ConfigurationPhase { get; protected set; }
public MilestoneConfigurationPhase ConfigurationSubPhase { get; protected set; }
public string Name { get; protected set; }
public int Order { get; protected set; }
(...)
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I mean that eg. I have Milestone, then Milestone has configuration stored in a property of name Configuration and type of MilestoneConfiguration.
When I change some in milestone and/or his configuration I would like to get one change event and create one record on the audit log.
Is it any way to get it? Unfortunately, now I have information only for basic properties like "SuggesttedDate" and if I want to log configuration I have to add a new mapping but I won't do that because I would like to have only one big entry in the log table. When I have separate mappings I occurrence many entries with one save so it's not good for me.
as for entity framework configuration, it's:
As you can see, the configuration has next value object MilestoneConfigurationPhase but I think that it's not important now.
For mapping I use ExplicitMapper:
Is it possible you get one audit event and log entry for "all tree" when i have milestone object with all references?
Beta Was this translation helpful? Give feedback.
All reactions