how to respect Post.CommentsAllowed if Post and Comment are separate aggregate roots?

后端 未结 0 530
挽巷
挽巷 2021-02-05 01:11

In a classic example of 2 aggregate roots like:

class Post
{
  string AuthorId;
  string Title;
  string Content;
  boolean AllowComments;
  ...
}

class Comment
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题