|
From: John W. (JIRA) <nh...@gm...> - 2010-10-15 14:19:26
|
[ http://216.121.112.228/browse/NH-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Weber updated NH-2380:
---------------------------
Attachment: NH2380.zip
Attached the test case
> 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
|