Re: DbProviderFactory and transactions.
- From: "Marc Gravell" <marc.gravell@xxxxxxxxx>
- Date: Fri, 1 Jun 2007 10:29:18 +0100
Yes - I *believe* that doing an INSERT with a SELECT clause should
take out the lock from the outset ("key range" or equivalent, I
suspect), removing the need for UPDLOCK to prevent escalation
deadlocks [let me know if you want an explanation]. Your approach
looks reasonably sound (from the detail give); the TransactionScope
(at serializable isolation - the default) should make life pretty
simple for you; this deliberately causes blocking (as necessary) to
prevent concurrency chaos from competing connections.
Marc
.
- References:
- Re: DbProviderFactory and transactions.
- From: BLUE
- Re: DbProviderFactory and transactions.
- Prev by Date: Re: Base And protected method
- Next by Date: Re: Encrypt values for a key in appsettings
- Previous by thread: Re: DbProviderFactory and transactions.
- Next by thread: c#, windows vista and capturing webcam
- Index(es):
Relevant Pages
|