From: Chris B. (JIRA) <nh...@gm...> - 2011-05-21 18:45:35
|
[ http://216.121.112.228/browse/NH-2722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Block updated NH-2722: ---------------------------- Attachment: NH2722.patch The patch file contains the NHSpecificTest for NH2722, as well as my solution to the problem (such as it is). > Linq Count() does not respect previous calls to Select() or Distinct() > ---------------------------------------------------------------------- > > Key: NH-2722 > URL: http://216.121.112.228/browse/NH-2722 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Chris Block > Priority: Minor > Attachments: NH2722.patch > > > session.Query<DomainEntity>() > .Select(x => x.Property) > .Distinct() > .Count() > Results in a count(*) query being executed, rather than a count(distinct Property) query. > session.Query<DomainEntity>() > .Select(x => x.Property) > .Count() > Results in a count(*) query, rather than a count(Property) query. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |