Hello friends,
I am beginner for Linq to Sql, I have one Query.
How to select 20 or 30 records from the database.
Thanks in advance.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Gaurish KumarPosted Oct 6, 2009, 1:44 AM
If you want to select the 20 records, u can use the Take keyword for that for ex:
(from p in dataContext.Customers
select p).Take(20)
I think it will solve your problem.
Sanjay ChauhanPosted Oct 6, 2009, 1:58 AM
It works!!
This forum is really very use full .