Solution for dissecting LINQ to Entities SQL generation.