2

Searching the net for this one for the past 2 hours. Any help is greatly appreciated. The scenario is like this, we have a Questionnaire, witch has Steps, each step has input sets, each input set has questions.

A simple QuestionnaireRepository.Session.Get(id) will further on result in multiple queries when accessing different collections. I was hoping I can get them all in one trip to the database.

Thanks,

PS. Of course we will want to have a small dataset :D

Calin
  • 6,661
  • 7
  • 49
  • 80

1 Answers1

1

I have gotten ok results with my solution from here: nhibernate : how to intialise child list objects

BUT for anything but the smallest datasets, this will not perform very well, and I would recommend to denormalize.

Community
  • 1
  • 1
asgerhallas
  • 16,890
  • 6
  • 50
  • 68