Table of Contents

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

commandType Type

Properties

Changes

public IEnumerable<CommandLogModelChange> Changes { get; }

Property Value

IEnumerable<CommandLogModelChange>

CommandType

public Type? CommandType { get; }

Property Value

Type

Id

public long Id { get; }

Property Value

long

ModelData

public CommandLogModelData? ModelData { get; }

Property Value

CommandLogModelData

Relations

public IEnumerable<CommandLogModelRelation> Relations { get; }

Property Value

IEnumerable<CommandLogModelRelation>

Request

public string Request { get; init; }

Property Value

string

RequestBody

public string RequestBody { get; set; }

Property Value

string

Timestamp

public DateTime Timestamp { get; }

Property Value

DateTime

UpdatedBy

public string UpdatedBy { get; }

Property Value

string

UpdatedById

public int UpdatedById { get; }

Property Value

int

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

extensionType Type

The extension's own data type (its TExtensionModel).

original object

The extension's value before the save, or null if it had none.

updated object

The extension's value after the save.

AddModelRelations(CommandLogModelRelation)

public void AddModelRelations(CommandLogModelRelation relation)

Parameters

relation CommandLogModelRelation

AddModelRelations(string, Type)

public void AddModelRelations(string identifier, Type modelType)

Parameters

identifier string
modelType Type

SetModelData(object?, object, Type)

public void SetModelData(object? original, object updated, Type modelType)

Parameters

original object
updated object
modelType Type
To top