Linq For NHibernateOrderring and Paging

time to read 1 min | 170 words

Bobby Diaz has implemented orderring and paging support for Linq to NHibernate, so this works:

(from c in nwnd.Customers select c.CustomerID)
        .Skip(10).Take(10).ToList();

As well as this:

var query = from c in nwnd.Customers
   where c.Country == "Belgium"
   orderby c.Country descending, c.City descending
   select c.City;

Thanks again, Bobby, and the new code is on SVN.

More posts in "Linq For NHibernate" series:

  1. (14 Apr 2007) Functions
  2. (05 Apr 2007) More Implementation Details
  3. (20 Mar 2007) Orderring and Paging