I need to do something like this
select * from myTable with (xlock,holdlock)
using Entity Framework. Is this possible? I've opened a TransactionScope
with the Serializable
isolation level but my selects are not locking the tables. I'd like them to lock until I complete the transaction scope.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…