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

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

问题描述

这个问题已经有了答案:
查看 linq-to-sql 生成的 sql 3 个回答

我想知道当 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天全站免登陆