title: MVC Entity Framework get one column as an array
body: <p>my application is asp.net MVC3 using Entity Framework.  I am trying to get a list of one column from a table as an array using the following:</p>
  
  <pre><code>   public ActionResult Index()
          {
              //var list = db.CasesProgresses.ToList();
              var SeriesList = GetSeriesList(Learner_ID);
              return View();
          }
  
  
  
          public List&lt;string&gt; GetSeriesList(string item)
          {
              // get DataTable dt from somewhere.
              List&lt;string&gt; sList = new List&lt;string&gt;();
              foreach (CasesProgress row in db.CasesProgresses)
              {
                  sList.Add(row[0].ToString());
              }
              return sList;  
          }
  </code></pre>
  
  <p>I get two errors:</p>
  
  <pre><code>Cannot apply indexing with [] to an expression of type 'caseprog.Models.CasesProgress' and
  The name 'Learner_ID' does not exist in the current context
  </code></pre>
  
  <p>Would appreciate your suggestions.</p>