When one is debugging my app, I would like to have a way to know the last command executed by the entity framework to know if one can improve the query by changing the lambda query / linq expression or even writing the t-sql query.
Not everyone has the sql profiler to check the queries and we all know that entity still has some problems with complex queries
Comments: Keep in mind that DbQuery.ToString does not cover queries capped by query operators that return a single element and cause immediate execution such as First, Count, Sum, etc. See http://entityframework.codeplex.com/workitem/958 for how we are thinking about addressing this,problem.
Not everyone has the sql profiler to check the queries and we all know that entity still has some problems with complex queries
Comments: Keep in mind that DbQuery.ToString does not cover queries capped by query operators that return a single element and cause immediate execution such as First, Count, Sum, etc. See http://entityframework.codeplex.com/workitem/958 for how we are thinking about addressing this,problem.