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 351577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:39:24+00:00 2026-05-12T11:39:24+00:00

I have been building a new application using my current understanding of domain driven

  • 0

I have been building a new application using my current understanding of domain driven design. So far I have a bunch of classes representing entities in my domain and a repository to retrieve from/persist to the database.

The problem I am running into is that in the UI I have a need to display a few lists where the items in the list don’t map directly to any entities in my domain. Some of the list could be built by doing a fairly deep eager load of certain entities, but other data is essentially synthesized at retrieval time and is not part of any entity. Let me provide an example that will hopefully explain the problem more clearly.

In my domain I have evaluations (a set of questions to answer) and responses (the answers that each user has provided to the evaluation) to those evaluations. I also have actions. Each action represents an action that has been taken with a response (submit, approve, reject, etc.). I also have users.

One of the lists of data that I need to display would include responses and evaluations (that have not been responded to), then each line would include information about the user who is currently working with the response (this is determined at retrieval time by looking at the actions that have been taken on a response). Each line item would also include zero or more child items which are actions that have been taken on the response so far.

The problem is that as of right now I don’t have any way to represent this entire data set with my domain entities. My first reaction would be to just retrieve a datatable from the database and bypass my domain entities. But I see a lot of value in working with domain objects and having the relationships between different entities baked into the objects themselves. So my next idea would be to modify my domain entities to support these lists, but I am concerned both that I would be adding strange properties to my entities just to support these listing scenarios and that I might be hurting performance by essentially doing deep loads of objects when I only need that data in a few places in my apps.

  • 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-12T11:39:24+00:00Added an answer on May 12, 2026 at 11:39 am

    I’d suggest not viewing this as something you have to shoehorn into your entities, but rather provide a service (in the domain-driven design parlance) whose job it is to collect this data when requested and present it as a view. This frees you up from having to rework your entities in an clunky way.

    The problem is that as of right now I don’t have any way to represent this entire data set with my domain entities.

    The awkward design friction you’re feeling here is a good thing. It’s a clue that things aren’t quite fitting together.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a web application and have been told that using object oriented
I have recently joined a new developing project building a thick client application using
I am absolutely new to the Android platform and have been building an application
I have been involved in building a custum QGIS application in which live data
I have been using PHP and JavaScript for building my dad's website. He wants
I'm playing around with building a new web application using DB4O - piles of
I have been looking into using Facebook Connect for a new web site I
I have been building enterprise software for the last 10 years. In this time
I have been building IMO a really cool RIA. But its now close to
I have been building a game for a while (nearly done) - But the

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.