Simple aggregate root and repository

后端 未结 3 1310
误落风尘
误落风尘 2020-12-09 07:06

I\'m one of many trying to understand the concept of aggregate roots, and I think that I\'ve got it! However, when I started modeling this sample project, I quickly ran into

3条回答
  •  春和景丽
    2020-12-09 07:22

    Look i think you have to restructure your model. Use ProcessType like a Value Object and Process Agg Root. This way Every Process has a processType

    Public class Process
    {
          Public Process()
          {
    
          }
    
          public ProcessType { get; }
    
    }
    

    for this u just need 1 agg root not 2.

提交回复
热议问题