title: Asp.net EF populate panel from database only x elements
body: <p>I have this method:</p>
  
  <pre><code>List&lt;JobDescriptions&gt; jobs = (from x in db.JobDescriptions select x)
       .OrderByDescending(y =&gt; y.DataAdaugarii)
       .ToList();
  </code></pre>
  
  <p>And I populate a panel like this:</p>
  
  <pre><code>JobReqModel jobReq = new JobReqModel();
  List&lt;JobDescriptions&gt; jobs = jobReq.GetAllJobsOrderedByDate();
  
  if (jobs != null)
  {
      foreach (JobDescriptions job in jobs)
      {
      Panel jobPanel = new Panel();
      .
      .
  </code></pre>
  
  <p>I want to populate my panel only with X elements not all entries from database. I watched on panel properties I found nothing and I have only methods like First() Last() and rest of them I have no idea how to use them, I am thinking about Count() right now but it doesn't seem to work.</p>