Click here to Skip to main content
15,905,912 members
Everything / TransactionScope

TransactionScope

TransactionScope

Great Reads

by Kyriakos Akriotis
How to use TransactionScope in your MongoDB operations.

Latest Articles

by Kyriakos Akriotis
How to use TransactionScope in your MongoDB operations.

All Articles

Sort by Score

TransactionScope 

14 Nov 2018 by Aydin Homay
Hi, As far as I know, you can use Transactional File Manager which is a .NET API that supports including file system operations such as file copy, move, delete, append, etc. in a transaction. However, this API is in fact a wrapper around Transactional NTFS If this did not solve your problem...
27 Sep 2015 by Wendelius
First thing is that the SaveChanges does not need a separate transaction since it's wrapped inside a transaction by default. The bigger question is what other operations you do with the context. For example does the modify context mean another call to SaveChanges. If it does, then wrapping...
5 Nov 2018 by OriginalGriff
Simple: you only have one item, and you keep reusing it. Imagine you have an envelope and into that you place cards, each of which contains a letter of the alphabet. You place the letter "A" into the envelope and pass it to your mate who notes down the number on the outside of the envelope....
27 Sep 2015 by Jacob_Zac
Hi,I was wondering is there any difference:Version 1:using (dbcontext = new DBContext()){ //read from context here //modify context here using (transactionscope = new TransactionScope()) { dbcontext.SaveChanges(); ...
14 Nov 2018 by Ehsan Sajjad
I have a scenario where we need to do multiple operations but all of those should be atomic which includes first writing rows in a table and after that using the Id for those rows writing a file for each of those on a network path and followed by writing to another table rows. What i need here...
31 Aug 2020 by Member 3749400
I am getting Error : The transaction associated with the current connection has completed but has not been disposed. after Log.WriteEntry($"Error occurred while trying to create invoice for transaction {transaction.TransactionLogId} :...
31 Aug 2020 by Sandeep Mewara
Quote[^]: your transaction probably timed out. Create the transaction scope with a large TimeSpan as the Timeout and it will get through. Seems people have faced this when the transaction times out. You can increase the timeout for your...
16 May 2021 by Hamza Jawed 2021
using (var scope = new TransactionScope()) { List itemUOM = this.getDb().Query("").ToList(); dd.CompanyId = Convert.ToInt32(SessionData.GetSessionData(context, "CompanyId")); dd.UpdatedBy =...
16 May 2021 by OriginalGriff
Generally, this happens when the query takes too long, and the transaction times out. You can extend it: using (var scope = new TransactionScope(TransactionScopeOption.Required, new System.TimeSpan(0, 30,...
25 Sep 2016 by Kyriakos Akriotis
How to use TransactionScope in your MongoDB operations.
24 Apr 2019 by Christian Graus
Design your database better. Give it more resources. Change the transaction isolation level SET TRANSACTION ISOLATION LEVEL (Transact-SQL) - SQL Server | Microsoft Docs[^]
5 Nov 2018 by Aitzaz Ahsan
using (System.Data.Entity.DbContextTransaction dbTran = db.Database.BeginTransaction()) { try { foreach (var items in obj.ListOfItems) { ...