Get top N records using LINQ to Entities
Posted
by Abdel Olakara
on Stack Overflow
See other posts from Stack Overflow
or by Abdel Olakara
Published on 2010-05-20T14:23:33Z
Indexed on
2010/05/20
14:30 UTC
Read the original article
Hit count: 303
LINQ
|entity-framework
Hi all,
I am using Linq to entities and would like to know if I can get a limited number of records when i query. I just need the top N records as the query do the orderby and other clauses. Is this possible or I will have to get the top N using foreach loop?
Thanks in advance for Ideas and suggestions,
Abdel Olakara
© Stack Overflow or respective owner