igor-tkachev/bltoolkit — pull request #128 by ACher (2012-12-03 23:11:41+00:00)
Title: Added test TestDistinctWithGroupBy

The BLtoolkit builds an incorrect SQL when GroupBy is applied to query with Distinct.
Now in generated SQL the distinct is applied to grouped result. Correctly Distinct should be applied to source query before grouping.