1

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

Thanks!

André Miranda
  • 6,420
  • 20
  • 70
  • 94

1 Answers1

2

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

Community
  • 1
  • 1
Eoin Campbell
  • 43,500
  • 17
  • 101
  • 157
  • Thanks Eoin!! I already have a PROC to do this, but I was trying to do that in my Application. It's a shame L2S doesn't support that. – André Miranda Apr 30 '09 at 13:13