Abp.VNext (二)聚合根

实体 只有ID的功能

Entity<TKey> 

 基础聚合根 增加了 ID 和 分布式事件总线 同时也实现了Entity<TKey> 

BasicAggregateRoot<TKey>

聚合根 增加了 时间戳解决并发的 同时也实现了 BasicAggregateRoot<TKey>

AggregateRoot<TKey>  

 创建审核聚合根  增加了 DateTime CreationTime 创建时间  Guid? CreatorId 创建人  同时实现了 AggregateRoot<TKey>  

CreationAuditedAggregateRoot<TKey>

审计聚合根

AuditedAggregateRoot<TKey> 增加了 DateTime? LastModificationTime 修改时间 Guid? LastModifierId 修改人 同时实现了CreationAuditedAggregateRoot<TKey>

 

完整审核聚合根 增加了 bool IsDeleted 是否删除 Guid? DeleterId删除人ID DateTime? DeletionTime 删除时间 同时实现了 AuditedAggregateRoot<TKey>

FullAuditedAggregateRoot 

 

到这里 也就是 完整审核聚合根 FullAuditedAggregateRoot 是最全的 含有 领域事件 ID 删除 修改 创建的 相关属性

Entity<TKey> 是最少的 只有 ID

 

posted on 2023-05-22 18:57  是水饺不是水饺  阅读(132)  评论(0)    收藏  举报

导航