Mathias Lykkegaard Lorenzen Mathias Lykkegaard Lorenzen - 1 month ago 10
C# Question

How can I debug EF? (analyze SQL queries)

How can I debug the Entity Framework? Can I see which queries it is actually trying to execute to the SQL server, to troubleshoot issues?

Answer

Check out the MVC Mini Profiler: http://code.google.com/p/mvc-mini-profiler/

It's very lightweight, doesn't intrude on your app, and is easily removed if need be. Plus, Stack Overflow uses it.

Comments