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

  • Home
  • SEARCH
  • 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 6655919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:34:47+00:00 2026-05-26T01:34:47+00:00

I am busy with a project where I will be implementing a tree structure

  • 0

I am busy with a project where I will be implementing a tree structure for relating objects to one another. I found a great article describing the logic and coding for a non-binary tree: Tree<T>: Implementing a Non-Binary Tree in C#. I see this as a good implementation.

My question, however, relates to the fact that I am wanting to develop this using a Domain Driven Development approach. So, what comes up in the design process is how will my combined domain model of the tree and my other objects equate to a data persistence model?

Because the Tree implementation uses generics, the domain object which stored the data will be oblivious to the fact that it is a part of the tree. So I am struggling to get my mind around how this will equate to data retrieval and persistence using a repository pattern and nhibernate, for example.

My initial thinking is that I would need to implement a very specific custom repository that would handle the traversal of the tree and persistence thereof. However, it is quite hazy at the moment.

Is there anybody out there who has done something like this and can share their experience or offer some code?

  • 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-26T01:34:48+00:00Added an answer on May 26, 2026 at 1:34 am

    I found an interesting post in the NHibernate FAQ which I think may help in clearing the mist on this topic. If you are interested, check this out: How to map a tree in NHibernate

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

Sidebar

Related Questions

I'm busy implementing ZXing with a QRCodeReader into my project. QRCodeReader is mainly C++
I´m busy converting an existing project from an Ant build to one using Maven.
I've found a great little program that will allow me to add user friendly
Currently I'm busy on a project using XML messaging. I have one general schema,
I have been busy in my project creating a webapp (in struts) that manages
Help I am busy making changes to a type library in a Datasnap project.
I'm busy introducing myself to jQuery by implementing a little system where onmouseover on
I'm busy implementing the wurfl api using PHP, but somehow just can't seem to
I'm busy on making a Business Logic Layer. Now I had a problem since
I am busy on a project that involves calling the API's of nine other

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.