在Visual Studio中查看LINQ执行的SQL的方法? [英] Way to view SQL executed by LINQ in Visual Studio?

查看:709
本文介绍了在Visual Studio中查看LINQ执行的SQL的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题已经在此处得到答案:
查看linq-to-sql生成的sql 3个答案

This question already has an answer here:
view sql that linq-to-sql produces 3 Answers

我想知道是否有一种方法可以查看运行LINQ to SQL查询时在Visual Studio 2010 Ultimate中针对数据库执行的T-SQL.

I'm wondering if there is a way to see the T-SQL that was executed against the database in Visual Studio 2010 Ultimate when a LINQ to SQL query runs.

推荐答案

如果您拥有Visual Studio Ultimate,则可以在调试时在IntelliTrace窗口中看到应用程序运行的每个SQL查询.

If you have Visual Studio Ultimate, you can see every SQL query your application runs in the IntelliTrace window while debugging.

这篇关于在Visual Studio中查看LINQ执行的SQL的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆