How to get the TSQL Query from LINQ DataContext.SubmitChanges()

后端 未结 7 897
猫巷女王i
猫巷女王i 2020-12-13 20:48

I\'m using Linq to SQL. I have a DataContext against which I am .SubmitChanges()\'ing. There is an error inserting the identity field, and I\'d like to see the query it\'s u

相关标签:
7条回答
  • 2020-12-13 21:33

    Run SQL Profiler if you have it. It'll show all traffic to your database, including SQL command text.

    0 讨论(0)
提交回复
热议问题