Skip to content

AuditableEntity

Class abstractpublic
Base class for entities that require audit tracking.
Namespace SampleApi
Assembly SampleApi
Package v1.0.0.0
public abstract class AuditableEntity
All entities inheriting from AuditableEntity automatically receive a unique identifier and timestamp fields for creation and last modification. The CreatedBy and UpdatedBy properties record the identity of the user who performed the respective action.
DateTimeOffset
DateTimeOffset AuditableEntity.CreatedAt

Gets or sets the UTC date and time when the entity was created.

CreatedBy Section titled CreatedBy nullable
string?
string? AuditableEntity.CreatedBy

Gets or sets the identifier of the user who created the entity.

Guid AuditableEntity.Id

Gets or sets the unique identifier of the entity.

DateTimeOffset
DateTimeOffset AuditableEntity.UpdatedAt

Gets or sets the UTC date and time when the entity was last updated.

UpdatedBy Section titled UpdatedBy nullable
string?
string? AuditableEntity.UpdatedBy

Gets or sets the identifier of the user who last updated the entity.