SQL query generated by LINQ TO SQL statement

后端 未结 3 1405
南旧
南旧 2021-01-14 18:41

How would i know the SQL statement generated by my Linq to sql query?

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-14 18:57

    Use LINQ to SQL Debugger Visualizer.

    Alternatively, you can set dataContext.Log property to Console.Out or something and the SQL statement, along with actual parameter values will be written out to that stream.

提交回复
热议问题