How do I view the SQL generated by the Entity Framework?

后端 未结 22 3214
别那么骄傲
别那么骄傲 2020-11-21 05:35

How do I view the SQL generated by entity framework ?

(In my particular case I\'m using the mysql provider - if it matters)

22条回答
  •  孤城傲影
    2020-11-21 06:15

    If you want to have parameter values (not only @p_linq_0 but also their values) too, you can use IDbCommandInterceptor and add some logging to ReaderExecuted method.

提交回复
热议问题