Class CommandLog
- Namespace
- Dynamicweb.CoreUI.Data.CommandLog
- Assembly
- Dynamicweb.CoreUI.dll
public sealed class CommandLog
- Inheritance
-
CommandLog
- Inherited Members
Constructors
CommandLog(Type)
public CommandLog(Type commandType)
Parameters
commandTypeType
Properties
Changes
public IEnumerable<CommandLogModelChange> Changes { get; }
Property Value
CommandType
public Type? CommandType { get; }
Property Value
Id
public long Id { get; }
Property Value
ModelData
public CommandLogModelData? ModelData { get; }
Property Value
Relations
public IEnumerable<CommandLogModelRelation> Relations { get; }
Property Value
Request
public string Request { get; init; }
Property Value
RequestBody
public string RequestBody { get; set; }
Property Value
Timestamp
public DateTime Timestamp { get; }
Property Value
UpdatedBy
public string UpdatedBy { get; }
Property Value
UpdatedById
public int UpdatedById { get; }
Property Value
Methods
AddExtensionChanges(Type, object?, object)
Records the changes made by one model extension's data, alongside the command's own model changes. Lets a single command log entry reflect that several independent extensions participated in one save.
public void AddExtensionChanges(Type extensionType, object? original, object updated)
Parameters
extensionTypeTypeThe extension's own data type (its
TExtensionModel).originalobjectThe extension's value before the save, or null if it had none.
updatedobjectThe extension's value after the save.
AddModelRelations(CommandLogModelRelation)
public void AddModelRelations(CommandLogModelRelation relation)
Parameters
relationCommandLogModelRelation
AddModelRelations(string, Type)
public void AddModelRelations(string identifier, Type modelType)
Parameters
SetModelData(object?, object, Type)
public void SetModelData(object? original, object updated, Type modelType)