This project has moved and is read-only. For the latest updates, please go here.

Transaction support in BaseDataContext

Topics: Developer Forum
Sep 24, 2009 at 5:45 PM
Edited Sep 24, 2009 at 5:46 PM

I don't understand approach for transaction support.

Method BeginTransaction() does not create a new TransactionScope. It only sets the property IsInTransaction. TransactionScope is created only in Commit. So, if I read a record a while ago, than decided to modify it there will be no check for any modifications that happen between my read and commit. Please explain.

Thanks

Alex

 

 

Jan 4, 2010 at 10:20 AM

Yes, indeed this is a very good point. I was wondering about that as well.

I mean it gets executed within one transaction once you call Commit, but the read rows are not locked between the read and the write. Is that intended?

Thanks, Steve