I meaned some other think.
How can I use the MAP: QuestionName->Question
something like:
Form form;
((Question)form.QuestionByName["AGE"]).Text="How old are you?"
radu wrote:
From what you describe I guess you have a many-to-many relationship between Form and Question tables. Look in the documentation for many-to-many associations. Basically, your mapping will look like this:
Code:
<class name="Form" table="Form">
...
<bag name="Questions" table="Question2Form">
<key column="FormID"/>
<many-to-many class="Question" column="QuestionID"/>
</bag>
...
</class>
Depending on the type of association: unidirectional or bidirectional you will have to set other attributes like "lazy", "cascade" etc. Again, look in the documentation
Regards,
Radu