Getting a certain number of rows from a db using nhibernate

How can I get a specific number of records from nhibernate like 10 or 15, not all records. I actually got the answer using criteria. Setmaxresults (). But my question is, how can I get the first 10 records, then the next 10 records and then .... next 10 .......

+1


a source to share


1 answer


use SetMaxResults()

in combination withSetFirstResult()



+1


a source







All Articles