views:

58

answers:

3

Remembering MySQL could use the instruction "limit" to indicate where I was starting my result set and how many wanted to have included.

Select * FROM Users Limit [start], [Length]

How can I do this in LINQ to SQL?

+2  A: 

You want to look up, Take and Skip.

Take and Skip

var query = listOfItems.Take("25").Skip("50");
Jack Marchetti
+2  A: 
var limit = 10;
var start = 30;

var result = ( from x in MyList
               select x ).Skip(start)
                         .Take(limit)
                         .ToList()
Filip Ekberg
A: 

You can see the Kigg Starter Kit for this problem and another ones

cyberdantes