diff --git a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/AggregateRoot.cs b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/AggregateRoot.cs index 3a58098a2a..8a4a8e0549 100644 --- a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/AggregateRoot.cs +++ b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/AggregateRoot.cs @@ -5,7 +5,7 @@ using System.Collections.ObjectModel; namespace Volo.Abp.Domain.Entities { [Serializable] - public abstract class AggregateRoot : Entity, IAggregateRoot + public abstract class AggregateRoot : Entity, IAggregateRoot, IGeneratesDomainEvents { private readonly ICollection _domainEvents = new Collection(); @@ -26,7 +26,7 @@ namespace Volo.Abp.Domain.Entities } [Serializable] - public abstract class AggregateRoot : Entity, IAggregateRoot + public abstract class AggregateRoot : Entity, IAggregateRoot, IGeneratesDomainEvents { private readonly ICollection _domainEvents = new Collection(); diff --git a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/IAggregateRoot.cs b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/IAggregateRoot.cs index ec5d681685..bdb436c51d 100644 --- a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/IAggregateRoot.cs +++ b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/IAggregateRoot.cs @@ -4,7 +4,7 @@ /// Defines an aggregate root. It's primary key may not be "Id" or it may have a composite primary key. /// Use where possible for better integration to repositories and other structures in the framework. /// - public interface IAggregateRoot : IEntity, IGeneratesDomainEvents + public interface IAggregateRoot : IEntity { }