view sql that linq-to-sql produces

前端 未结 3 1262
無奈伤痛
無奈伤痛 2021-01-24 06:38

Other than using profiler, is there a way to view the sql that linq-to-sql produces?

3条回答
  •  悲哀的现实
    2021-01-24 07:28

    I used LinqPad today to help debug a Linq2Sql issue. It's a neat little tool, and will show you the SQL you're generating also.

    http://www.linqpad.net/

提交回复
热议问题