views:

246

answers:

1

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

Thanks!

+1  A: 

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

Eoin Campbell
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.
AndreMiranda