Skip to:
When First is called on a GroupBy query invalid SQL code seems to be generated:
This causes the following Exception:
The same error is also causes with FirstOrDefault, SingleOrDefault, Single.
A different exception is thrown when an additional Select statement is added:
However, calling ToList does not cause an exception:
This would generate the following SQL code:
Using Take causes the same error as First:
related to https://nhibernate.jira.com/browse/NH-3027?
Calling OrderBy on a GroupBy query yields yet another exception:
When First is called on a GroupBy query invalid SQL code seems to be generated:
This causes the following Exception:
The same error is also causes with FirstOrDefault, SingleOrDefault, Single.
A different exception is thrown when an additional Select statement is added:
However, calling ToList does not cause an exception:
This would generate the following SQL code:
Using Take causes the same error as First: