No worries. I was trying to figure out what would cause that, but I know that's been working for quite a while and you weren't doing anything complicated!
On Mon, Feb 22, 2010 at 9:26 AM, Chris <[email protected]> wrote: > Ahh, tis okay. Is me being a little bit dumb on a Monday afternoon. > > Of course I need > > results = result.Skip(5).Take(5); > > They don't modify the existing IQueryable but create a new one! > > Off to hang my head in shame. > > On Feb 22, 3:05 pm, Chris <[email protected]> wrote: > > I have had to ildasm/ilasm the assembly so I can give it a string name > > but I don;t think that should effect functionality > > > > On Feb 22, 3:01 pm, Chris <[email protected]> wrote: > > > > > > > > > The library version is 1.1.0.1001 which I downloaded from > > > NHibernate.Linq-2.1.2-GA-Bin.zip onhttp:// > sourceforge.net/projects/nhibernate/files/ > > > > > On Feb 22, 2:59 pm, Robert Rudduck <[email protected]> wrote: > > > > > > Which version are you using? > > > > > > On Mon, Feb 22, 2010 at 8:47 AM, Chris <[email protected]> > wrote: > > > > > Hey All, > > > > > > > I'm trying to get some very basic paging going with the Linq > provider > > > > > but it seems to be ignoring the Skip and Take extension methods? > Is > > > > > this a bug or is it simply not supported yet. > > > > > > > var results = repository.Find<Person>(p=>p.Name.Contains("Geoff")); > // > > > > > Returns the IQueryable, not execution here > > > > > > > switch(sortColumn) > > > > > { > > > > > case "Name": > > > > > results.OrderBy(p=>p.Name); > > > > > > > // A whole bunch of others along with direction changes > > > > > } > > > > > > > results.Skip(5).Take(5); > > > > > > > var list = results.ToList(); // Always has all the geoffs, more > than 5 > > > > > > > -- > > > > > 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]<nhusers%[email protected]> > <nhusers%[email protected]<nhusers%[email protected]>> > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/nhusers?hl=en. > > -- > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- 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.
