コード例 #1
0
        public Action(int actionId)
        {
            SqlDataReader reader = new ActionData().GetActionByID(actionId);

            if (reader.Read())
            {
                LoadAction(reader);
            }
            reader.Close();
        }
コード例 #2
0
 public void LoadAll()
 {
     using (SqlDataReader reader = new ActionData().GetActions())
     {
         while (reader.Read())
         {
             this.Add(new Action(reader));
         }
         reader.Close();
     }
 }