When I have a query generated as follows:
var query = from x in Entities.SomeTable
select x;
I can set a breakpoint and, after hovering over the query, I can see which SQL command will be sent to the database. Unfortunately, I can’t do this when I use Count
var query = (from x in Entities.SomeTable
select x).Count();
Of course, I could see what was happening with SqlServer using the profiler, but maybe someone knows how to do this (if possible) in VS.
source
share