I used to use the context.Log for tracing LINQ to SQL generated SQL Statements as shown in Sql Server Query Visualizer – Cannot see generated SQL Query
context.Log = new OutputWindowWriter();
For EF, is there anything similar and easy like the above approach?
See Question&Answers more detail:os