Hi,
Some help for NH newbie? Wonder how could I map this (using castle
activerecord if that affects):

QuestionnaireTemplate : Entity
  [PrimaryKey] long Id
  [HasMany] IList<Questions> Questions

Question : Entity
  [PrimaryKey] long Id
  [BelongsTo] QuestionnaireTemplate Template
  [Property] string Text

QuestionnaireAnswers : Entity
  [PrimaryKey] long Id
  [BelongsTo???] QuestionnaireTemplate Template
  [HasMany???] IList<Answer> Answers

Answer : Entity
  [PrimaryKey] long Id
  [Property] string Text
  [???] Question Question

How can I make QuestionnaireAnswers.Answers to always contain one Answer per
Question?

Cheers,
Miika

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to