From: Radu B. (JIRA) <nh...@gm...> - 2011-05-29 00:06:45
|
[ http://216.121.112.228/browse/NH-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21217#action_21217 ] Radu Ban commented on NH-2380: ------------------------------ same as NH-2645 and NH-2486 > Cannot perform distinct when selecting an anonymous type > -------------------------------------------------------- > > Key: NH-2380 > URL: http://216.121.112.228/browse/NH-2380 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Beta1 > Reporter: John Weber > Attachments: NH2380.zip > > > Attempting to execute a Linq query that selects out an anonymous type will result in a NotSupportedException being thrown. For example, performing the following query: > session.Query<Person>().Select(a => new { a.Name }).Distinct().ToArray(); > will result in: > System.NotSupportedException : Expression type 10005 is not supported by this SelectClauseVisitor. -- 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 |