We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f13af5 commit 37d9a67Copy full SHA for 37d9a67
src/NHibernate.Test/Linq/ByMethod/GroupByTests.cs
@@ -143,6 +143,18 @@ public void SingleKeyPropertyGroupAndOrderByCountBeforeProjection()
143
AssertOrderedBy.Descending(orderCounts, oc => oc.OrderCount);
144
}
145
146
+ [Test, KnownBug("NH-????"), Description("Discovered as part of NH-2560")]
147
+ public void SingleKeyPropertyGroupWithOrderByCount()
148
+ {
149
+ var result = db.Orders
150
+ .GroupBy(o => o.Customer)
151
+ .OrderByDescending(g => g.Count()) // it seems like there we should do order on client-side
152
+ .Select(g => g.Key)
153
+ .ToList();
154
+
155
+ Assert.That(result.Count, Is.EqualTo(89));
156
+ }
157
158
[Test, KnownBug("NH-3027")]
159
public void SingleKeyPropertyGroupByEntityAndSelectEntity()
160
{
0 commit comments