title: How to store entities context query object into generic list?
body: <p>In <a href="https://stackoverflow.com/questions/8013493/cannot-foreach-through-data-context/8015885#8015885">my last question</a>, i successfully to dump the data into combo box with solution from  Leo but now, i want to get everything of specific user and store into generic list. i tried with this code but it's not working. May i know is there something wrong with my code ? </p>
  
  <pre><code>  var contexti = new OrganizationContext();
    //contexti.Load(contexti.GetAdminPassQuery(userName), LoadInfo, null);
    EntityQuery query = contexti.GetAdminPassQuery(userName);
    contexti.Load&lt;tblAdmin&gt;(query).Completed += (sender, args) =&gt;
             {
                    List&lt;AdminInfo&gt; list = ((LoadOperation&lt;tblAdmin&gt;) sender).Entities.
                                           ToList();}
  </code></pre>
  
  <p>this is in the domain context.</p>
  
  <pre><code>    public IQueryable&lt;tblAdmin&gt;  GetAdminPass(string adminId)
      {
          return this.ObjectContext.tblAdmins.Where(e =&gt; e.adminID.Equals(adminId));
      }
  </code></pre>
  
  <p>this is the generic list store in helper folder</p>
  
  <pre><code>    public class AdminInfo
  {
      public string AdminId { get; set; }
      public string AFirstName { get; set; }
      public string ALastName { get; set; }
      public string AEmail { get; set; }
      public string APassword { get; set; }
  }
  </code></pre>
  
  <p>Thank you for reply</p>