コード例 #1
0
 public override void FillChildrenFields()
 {
     Answers = new List<Answer>();
     using (MySqlDataReader reader = DbHelper.BattleQuery(string.Format("SELECT * FROM answers WHERE QuestionId = {0}", QuestionId)))
     {
         while (reader.Read())
         {
             Answer answer = new Answer();
             answer.FillFields(reader);
             Answers.Add(answer);
         }
     }
 }