Check LINQ query against SQL Server database

前端 未结 5 1650
天涯浪人
天涯浪人 2021-02-06 11:25

Is there any way to in .NET to see what LINQ query against database we are firing? For eg. I am wring a query in LINQ and I want to see that what SQL query is firing to communic

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 12:03

    You can use SQL Profiler to see how the LINQ expression is translated into SQL statement.

提交回复
热议问题