Hey - can anyone give me an example of using a group by in LINQ through
nHibernate that actually works? I still can't get this working at all, even
something simple like this:
return (from a in _queryService.IndexedUrlAttributeView
group a by a.Name
into g
orderby g.Count() descending
select g.Key).Take(maxCount).ToList();
throws a NullReferenceException.
Help!
Thanks
James
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---