LinQ To SQL with UPDLOCK

前端 未结 1 836
予麋鹿
予麋鹿 2021-01-23 11:02

Is there a way to use UPDLOCK with LinQ To SQL? I have a scenario that needs it.

Thanks!

相关标签:
1条回答
  • 2021-01-23 11:59

    Linq2SQL currently doesn't support issuing an UPDLOCK

    More info here and here

    if you need to do this, you can wrap your own SQL in a SPROC and have L2S execute the SPROC instead

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