Table of Contents

Class AuditedEntity

Namespace
Dynamicweb.Core
Assembly
Dynamicweb.Core.dll

The AuditedEntity class holds information about a given entity and when and by who it was audited

[Serializable]
public class AuditedEntity
Inheritance
AuditedEntity
Inherited Members
Extension Methods

Constructors

AuditedEntity(DateTime, DateTime)

Initializes a new instance of the AuditedEntity class.

public AuditedEntity(DateTime created, DateTime updated)

Parameters

created DateTime

The created date and time.

updated DateTime

The updated date and time.

AuditedEntity(DateTime, string)

Initializes a new instance of the AuditedEntity class.

public AuditedEntity(DateTime created, string createdBy)

Parameters

created DateTime

The created date and time.

createdBy string

The user id of the user who created the entity.

AuditedEntity(DateTime, string, DateTime, string)

Initializes a new instance of the AuditedEntity class.

public AuditedEntity(DateTime created, string createdBy, DateTime updated, string updatedBy)

Parameters

created DateTime

The created date and time.

createdBy string

The user id of the user who created the entity.

updated DateTime

The updated date and time.

updatedBy string

The user id of the user who last updated the entity.

Properties

CreatedAt

Gets the created date and time of the entity.

public DateTime CreatedAt { get; }

Property Value

DateTime

E.g. 2015/05/29 05:50:06

CreatedBy

Gets the user id of the user who created the entity.

public string CreatedBy { get; }

Property Value

string

DeletedAt

Gets the deleted date and time.

public DateTime? DeletedAt { get; }

Property Value

DateTime?

DeletedBy

Gets the user id of the user who deleted the entity.

public string? DeletedBy { get; }

Property Value

string

LastModifiedAt

Gets the last modified date and time.

public DateTime LastModifiedAt { get; }

Property Value

DateTime

E.g. 2015/05/29 05:50:06

LastModifiedBy

Gets the user id of the user that last modified the entity.

public string LastModifiedBy { get; }

Property Value

string

Methods

MarkAsDeleted(DateTime, string)

Marks the entity as deleted.

public AuditedEntity MarkAsDeleted(DateTime deletedAt, string deletedBy)

Parameters

deletedAt DateTime

The deleted date and time.

deletedBy string

The user id of the user who deleted the entity.

Returns

AuditedEntity

AuditedEntity.

MarkAsDeleted(string)

Marks the entity as deleted.

public AuditedEntity MarkAsDeleted(string deletedBy)

Parameters

deletedBy string

The user id of the user who deleted the entity.

Returns

AuditedEntity

AuditedEntity.

MarkAsUpdated()

Marks as updated.

public AuditedEntity MarkAsUpdated()

Returns

AuditedEntity

AuditedEntity.

MarkAsUpdated(string)

Marks the entity as updated.

public AuditedEntity MarkAsUpdated(string updatedBy)

Parameters

updatedBy string

The user id of the user who updated the entity.

Returns

AuditedEntity

AuditedEntity.

To top