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

后端 未结 22 2885
别那么骄傲
别那么骄傲 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:12

    SQL Management Studio => Tools => SQL Server profiler

    File => New Trace...

    Use the Template => Blank

    Event selection => T-SQL

    Lefthandside check for: SP.StmtComplete

    Column filters can be used to select a specific ApplicationName or DatabaseName

    Start that profile running then trigger the query.

    Click here for Source information

提交回复
热议问题