Class BaseEntity<T>
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
CreatedBy
The user (user identifier) who last updated the entity.
[JsonPropertyOrder(246)]
public Guid CreatedBy { get; init; }
Property Value
IsImportant
Is the entity important to the user / system?
[JsonPropertyOrder(250)]
public bool IsImportant { get; set; }
Property Value
IsSoftDeleted
Is the entity soft deleted?
[JsonPropertyOrder(251)]
public bool IsSoftDeleted { get; protected set; }
Property Value
LastUpdatedAt
The date and time when the entity was last updated.
[JsonPropertyOrder(247)]
public DateTimeOffset LastUpdatedAt { get; protected set; }
Property Value
LastUpdatedBy
The user (user identifier) who last updated the entity.
[JsonPropertyOrder(248)]
public Guid LastUpdatedBy { get; protected set; }
Property Value
NumberOfUpdates
The number of times the entity has been updated.
[JsonPropertyOrder(249)]
public int NumberOfUpdates { get; set; }
Property Value
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()