| 1234567891011121314151617181920212223 |
- 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<int>, IAggregateRoot
- {
- }
- public class AggregateRoot<TPrimaryKey> : Entity<TPrimaryKey>, IAggregateRoot<TPrimaryKey>
- {
- [NotMapped]
- public virtual ICollection<IEventData> DomainEvents { get; }
- public AggregateRoot()
- {
- DomainEvents = new Collection<IEventData>();
- }
- }
- }
|