How do I do this
Select top 10 Foo from MyTable
in Linq to SQL?
The OP actually mentioned offset as well, so for ex. if you'd like to get the items from 30 to 60, you would do:
var foo = (From t In MyTable Select t.Foo).Skip(30).Take(30);
Use the "Skip" method for offset. Use the "Take" method for limit.