how to take 100 records from linq query based on a condition
<p>I have a query, which will give the result set . based on a condition I want to take the 100 records. that means . I have a variable x, if the value of x is 100 then I have to do .take(100) else I need to get the  complete records.</p>

<pre><code>var abc=(from st in Context.STopics 
where  st.IsActive==true &amp;&amp; st.StudentID == 123 
select new result()
{
 name = st.name }).ToList().Take(100);
</code></pre>