From: Chris B. (JIRA) <nh...@gm...> - 2011-05-21 18:40:35
|
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 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 |