Mathias Lykkegaard Lorenzen Mathias Lykkegaard Lorenzen - 8 months ago 58
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?


Check out the 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.