Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6602283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:51:30+00:00 2026-05-25T18:51:30+00:00

I’m fairly new to DDD and have read a few articles about the concept

  • 0

I’m fairly new to DDD and have read a few articles about the concept so pardon if I’m lacking some knowledge. I’m curious on how this example should be modeled with aggregate roots.

The basis is: There is an Employee, a Meeting and Comments. Each Employee can attend a Meeting where they can make Comments. The Comments are tracked according to Employee and Meeting. Every Meeting and Employee have unique identifiers.

If I wanted to display all Comments from a Meeting, regardless of the Employee, would I first have to get all the Employees that belong to that Meeting and then sort through the Comments to only show ones that match the Meeting Id?

Meeting can’t be my aggregate root because when I need a list of Employees, I certainly do not want to have to go through meetings to get that. Maybe each one is an aggregate root, but Comments do not make sense really outside an Employee. I’m looking for ideas on how to better approach this scenario.

// Datebase tables
Meeting
Employee
Comment - Contain EmployeeId and MeetingId


public class Employee
{
    public List<Comment> Comments { get; set; }
}

public class Meeting
{
    public List<Employees> Employees { get; set; } 
}

Thanks in advance for the help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:51:30+00:00Added an answer on May 25, 2026 at 6:51 pm

    Employee and Meeting are your aggregate roots, and you’ll have to create a repository for your aggregate roots.

    Comments can be a property of Meeting. I think it is useless to retrieve the comments from an Employee, without being related to a Meeting ? I don’t think Comments do not have any meaning when you don’t know its ‘context’ (== Meeting) ?

    By doing so, your class model will be something very similar to what Chris Marisic proposes.

    Next to those classes, you could have the following repositories:

    public class EmployeeRepository
    {
        public IList<Employee> GetAll() {}
    }
    
    public class MeetingRepository
    {
        public IList<Meeting> GetAll(){}
    
        public IList<Meeting> GetMeetingsAttendedByEmployee( Employee emp ){}
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't have much knowledge about the IPv6 protocol, so sorry if the question
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
this is what i have right now Drawing an RSS feed into the php,
I have a small JavaScript validation script that validates inputs based on Regex. I
I have this code to decode numeric html entities to the UTF8 equivalent character.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.