tags:

views:

92

answers:

1

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

+1  A: 

use SetMaxResults() in conjunction with SetFirstResult()

Matt Hinze
that's what I was thinking as well...... thnx
alice7