Sqlserver
 sql >> Base de Dados >  >> RDS >> Sqlserver

Linq selecionando intervalo de registros


Que tal:
var q = (
from Comments in db.tblBlogComments 
where Comments.blogID == this.ID 
orderby Comments.date descending 
select new { Comments.userID, Comments.comment, Comments.date }).Skip(10).Take(10);