From af8f5cbcb1a9d705b58ecb05fe0a14bb3af6c7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Thu, 5 Apr 2018 11:49:48 +0300 Subject: [PATCH] Do not force aggregate roots to implement IGeneratesDomainEvents. --- .../Volo/Abp/Domain/Entities/AggregateRoot.cs | 4 ++-- .../Volo/Abp/Domain/Entities/IAggregateRoot.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 { }