view generated SQL for Entity Framewok SaveChanges command in Visual studio?

前端 未结 4 679
礼貌的吻别
礼貌的吻别 2021-01-05 00:02

I can see the SQL generated by Entity Framework for select operations in Visual studio, but not for insert, update and delete. how can I see the SQL generated for \"DataCont

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-05 00:50

    I know this is old, but it was the first link that came up in my search so I'd thought I'd post that the easiest solution for me was to use SQL Profiler per:

    String or binary data would be truncated.The statement has been terminated

    Ooops...just saw that OP does not have access to Profiler, but the link is still good for giving instructions for those that do!

提交回复
热议问题