如何调试EF? (分析SQL查询) [英] How can I debug EF? (analyze SQL queries)
本文介绍了如何调试EF? (分析SQL查询)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何调试实体框架?我可以看到实际尝试执行哪些查询到SQL服务器,以解决问题吗?
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?
推荐答案
查看MVC Mini剖析器: http://code.google.com/p/mvc-mini-profiler/
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.
这篇关于如何调试EF? (分析SQL查询)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文