namespace Lumina.Domain.Common.Models.Core; /// /// Base class for all domain Aggregate Roots. /// /// The type representing the unique identifier for the Aggregate Root. It should be a non-nullable type. public abstract class AggregateRoot : Entity where TId : notnull { #region ====================================================================== CTOR ===================================================================================== /// /// Initializes a new instance of the class. /// /// The id of the entity. protected AggregateRoot(TId id) : base(id) { Id = id; } #pragma warning disable CS8618 /// /// Initializes a new instance of the class. /// protected AggregateRoot() // only needed during reflection { } #pragma warning restore CS8618 #endregion }