Cleaning up the log/audit trail usage, removing duplicate and unecessary entries and adding new cols

This commit is contained in:
Shannon
2018-10-18 22:47:12 +11:00
parent 6cd9102fac
commit f1ca32ea54
17 changed files with 174 additions and 87 deletions

View File

@@ -11,7 +11,7 @@ namespace Umbraco.Core.Models
/// <param name="comment"></param>
/// <param name="type"></param>
/// <param name="userId"></param>
public AuditItem(int objectId, string comment, AuditType type, int userId)
public AuditItem(int objectId, AuditType type, int userId, string entityType, string comment = null, string parameters = null)
{
DisableChangeTracking();
@@ -19,11 +19,19 @@ namespace Umbraco.Core.Models
Comment = comment;
AuditType = type;
UserId = userId;
EntityType = entityType;
Parameters = parameters;
EnableChangeTracking();
}
public string Comment { get; }
/// <inheritdoc/>
public string EntityType { get; }
/// <inheritdoc/>
public string Parameters { get; }
public AuditType AuditType { get; }
public int UserId { get; }
}