Survey クラスと Poll クラスの 2 つのクラスがあります。また、質問と質問選択のクラスもあります。これらをどのようにマッピングすれば、特定のテーブル形式を作成できますか。関連するクラスは次のとおりです。
public class Survey
{
public IList<Question> Questions { get; private set; }
}
public class Poll
{
public Question Question { get; set; }
}
public class Question
{
public string Text { get; set; }
public IList<QuestionChocie> Choices { get; private set; }
}
public class QuestionChoice
{
public string Text { get; set; }
}
私が撮影している結果のテーブルには、次のものが含まれます
Surveys- a table of survey information.
Polls - a table of polls information.
SurveyQuestions -a table of survey questions.
PollQuestions - a table of poll questions.
SurveyChoices - a table of the question choices for the surveys.
PollChoices - a table of the question choices for the survey.
できれば、Fluent NHibernate について本当に知りたいか、xml をマッピングするだけでもかまいません。