Table of Contents

Class BaseEntity<T>

Namespace
arolariu.Backend.Common.DDD.Contracts
Assembly
arolariu.Backend.Common.dll

The base entity abstract base class.

public abstract class BaseEntity<T> : IAuditable

Type Parameters

T
Inheritance
BaseEntity<T>
Implements
Derived
Inherited Members

Properties

CreatedAt

The date and time when the entity was created.

[JsonPropertyOrder(245)]
public DateTimeOffset CreatedAt { get; init; }

Property Value

DateTimeOffset

CreatedBy

The user (user identifier) who last updated the entity.

[JsonPropertyOrder(246)]
public Guid CreatedBy { get; init; }

Property Value

Guid

IsImportant

Is the entity important to the user / system?

[JsonPropertyOrder(250)]
public bool IsImportant { get; set; }

Property Value

bool

IsSoftDeleted

Is the entity soft deleted?

[JsonPropertyOrder(251)]
public bool IsSoftDeleted { get; protected set; }

Property Value

bool

LastUpdatedAt

The date and time when the entity was last updated.

[JsonPropertyOrder(247)]
public DateTimeOffset LastUpdatedAt { get; protected set; }

Property Value

DateTimeOffset

LastUpdatedBy

The user (user identifier) who last updated the entity.

[JsonPropertyOrder(248)]
public Guid LastUpdatedBy { get; protected set; }

Property Value

Guid

NumberOfUpdates

The number of times the entity has been updated.

[JsonPropertyOrder(249)]
public int NumberOfUpdates { get; set; }

Property Value

int

id

The identity of the entity.

[JsonPropertyOrder(0)]
public virtual T? id { get; init; }

Property Value

T

Methods

SoftDelete()

Soft delete the entity.

public virtual void SoftDelete()