There is an odd behavior with this query:

s.Query<Person>().GroupBy(p => p.LastName).ToArray()

This query doesn't work, is translated to something like this:

select FirstName, LastName, Address, Phone, Bla, BlaBla,  BlaBlaBla
from Person
group by LastName


However if you add a select like this:

s.Query<Person>().GroupBy(p => p.LastName).Select(group => group).ToArray(),

the query works well and the sql is right.

Jira ticket: Nh-2118:
http://216.121.112.228/browse/NH-2118

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