title: Get top 5 values with lambda query
body: <p>Here is my code, </p>
  
  <pre><code>rptAnnouncement.DataSource = DbContext.Announcements
      .Where(n =&gt; n.Expire_Date.Value.Date &gt;= DateTime.Now.Date)
      .ToList();  
  </code></pre>
  
  <p>I take the announcements data from database with lambda and bind this data to ASP.NET repeater(<code>rptAnnouncement</code>).</p>
  
  <p>But this query returns all of the data, I just want to get the top 5 (first 5) records like MS SQL Server's <code>select top 5 * from database</code>.</p>