using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations.Schema; using Abp.Events.Bus; namespace Abp.Domain.Entities { public class AggregateRoot : AggregateRoot, IAggregateRoot { } public class AggregateRoot : Entity, IAggregateRoot { [NotMapped] public virtual ICollection DomainEvents { get; } public AggregateRoot() { DomainEvents = new Collection(); } } }