hey guys,
is there any way to get orderby working in conjunction with group by in the
Linq to SQL provider at the moment?

for instance:

from t in _queryService.ContentAttributeView
group t by t.Name
into g
orderby g.Count() descending
select g.Key;

fails with

[NullReferenceException: Object reference not set to an instance of an object.]
   NHibernate.Loader.Criteria.CriteriaQueryTranslator.GetEntityName(ICriteria
subcriteria, String propertyName) +57


but it works fine without the orderby.

cheers!

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to