コード例 #1
0
 public static HistoricEntry Create(AuditEntry log, string property, string oldValue, string newValue)
 {
     return(new HistoricEntry
     {
         User = log.ChangedBy,
         Changed = log.EntityName,
         Property = property,
         From = oldValue,
         To = newValue,
         At = Convert.ToDateTime(log.ChangedAt)
     });
 }
コード例 #2
0
 private static Dictionary <string, string> NewValues(AuditEntry log)
 {
     return(DeserializeProperties(log.NewValue));
 }
コード例 #3
0
 private static Dictionary <string, string> OldValues(AuditEntry log)
 {
     return(log.OldValue == null
         ? null
         : DeserializeProperties(log.OldValue));
 }