nhibernate/nhibernate-core — pull request #41 by hazzik (2011-12-22 16:43:31+00:00)
Title: NH-2380, NH-2486, NH-2645: Linq - Cannot perform distinct after projection

Attempting to execute a Linq query that selects out an anonymous or regular type will result in a NotSupportedException being thrown. For example, performing the following query:

```
session.Query()
.Select(a => new { a.Name })
.Distinct()
.ToArray();
```
or

```
session.Query()
.Select(a => new PersonDto { a.Name })
.Distinct()
.ToArray();
```

Covers
https://nhibernate.jira.com/browse/NH-2380
https://nhibernate.jira.com/browse/NH-2486
and https://nhibernate.jira.com/browse/NH-2645