Is there any way to trace\log the sql using Dapper?

后端 未结 6 1764
北恋
北恋 2020-12-05 09:26

Is there a way to dump the generated sql to the Debug log or something? I\'m using it in a winforms solution so the mini-profiler idea won\'t work for me.

6条回答
  •  天涯浪人
    2020-12-05 09:53

    Just to add an update here since I see this question still get's quite a few hits - these days I use either Glimpse or Stackify Prefix which both have sql command trace capabilities.

    It's not exactly what I was looking for when I asked the original question but solve the same problem.

提交回复
热议问题