.GroupBy(x => 0) generates incorrect SQL query:
SELECT TOP 2 [a].[column1] FROM (SELECT 0 AS [column], MAX([b].[Name]) AS
[column1] FROM (SELECT [c].[ID], 101 AS [TypeId], [c].[Enterprise.ID],
[c].[Site.ID], [c].[Name] FROM [dbo].[Area] [c]) [b] GROUP BY 0) [a];
it must generate "GROUP BY column1"
Original issue reported on code.google.com by alexey.g...@gtempaccount.com on 25 Oct 2010 at 2:21
Original issue reported on code.google.com by
alexey.g...@gtempaccount.com
on 25 Oct 2010 at 2:21