nhibernate/nhibernate-core — pull request #94 by hazzik (2012-04-17 06:01:42+00:00)
Title: NH-3108 Select after paging throws exception

The following query throws an exception in PolymorphicQuerySourceDetector.GetClassName(IASTNode querysource):

```csharp
var ids = session.Query()
.OrderBy(p => p.Id)
.Skip(100).Take(201)
.Select(p => p.Id)
.ToList();
```

Remotion.Linq creates subquery for this type of query. We can flat this query because outer query does not have any additional body clauses (where, order by, etc).

JIRA: https://nhibernate.jira.com/browse/NH-3108