But you are invoking the List() method first, until that returns you can't
index into it.  NHibernate isn't even involved in indexing into the list.

-Ryan Rinaldi
blog: http://ryanrinaldi.com


On Wed, Mar 11, 2009 at 6:40 AM, graphicsxp <[email protected]>wrote:

>
> > P.S. Your question is more related to C# knowledge than NH knowledge
>
> True, but that was not obvious until I found out ! :)
>
> > You should use SetMaxResult.
>
> Ok, although imo NHibernate should handle it by default since I've
> specified the first index in the list... Anyway that's just my point
> of view....
>
> Thanks  !
>
> On 11 mar, 10:46, Fabio Maulo <[email protected]> wrote:
> > 2009/3/11 graphicsxp <[email protected]>
> >
> >
> >
> > > This raises another question : I've specified the first index, so why
> > > other records were even considered by NHibernate ??
> >
> > You should use SetMaxResult.
> >
> > Fabio Maulo
> >
> > P.S. Your question is more related to C# knowledge than NH knowledge
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to