feat(domain): add common base classes and interfaces

- Add BaseEntity with audit fields (CreatedDate, CreatedBy, ModifiedDate, ModifiedBy)
- Add IAggregateRoot marker interface for DDD aggregate roots
- Add ValueObject base class with equality comparison by value

These classes provide the foundation for all domain entities and value objects.
This commit is contained in:
2026-07-07 18:58:10 +02:00
parent 915d01fc03
commit 05a36e8045
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
namespace DigitalData.EmailProfiler.Domain.Common;
public abstract class BaseEntity
{
public DateTime? CreatedDate { get; set; }
public string? CreatedBy { get; set; }
public DateTime? ModifiedDate { get; set; }
public string? ModifiedBy { get; set; }
}