views:

143

answers:

0

Every time i refresh the page i get the next 10 results. It is my intention to always get the same 10 items.

I have the following page

export.rails?items=10

Which hits the following Monorail Handler

    public void export(int items)
    {

    TypedPropertyBag.Delegate = delegateRepository.FindAllDelegatesIsExported(items);

    }

This calls the following method

public List<Delegate> FindAllDelegatesIsExported(int items)
{
    return new List<Delegate>(FindAll(Where.Delegate.IsExportedToGateSystem.IsNull, 0, items,
                                                new Order[] { OrderBy.Delegate.LastName, OrderBy.Delegate.FirstName }));
}

FindAll takes the following parametres

FindAll (DetachCriteria, firstresults, Maxresults, Param)

I'm quite new to NHibinate, It may not be cursor related. Really appreciate any thoughts