title: Save Multiple Variables to Class
body: <p>I am fairly new to programming and am trying to wrap my head around classes. I have created a class like the following:</p>
  
  <pre><code>    public class HistoricalEvents
      {
          public DateTime historicDate { get; set; }
          public string historicEvent { get; set; }
      }
  </code></pre>
  
  <p>I want to be able to go into a MySQL database, pull multiple events, and then display those events onto the screen. How do you create multiple HistoricalEvents from MySQL and then iterate through them to display them onto a screen?</p>