From db5e82084166c2ca02fb991248e7df8776ccbf48 Mon Sep 17 00:00:00 2001 From: s459315 Date: Tue, 2 Aug 2022 17:49:27 +0200 Subject: [PATCH] Fixed transaction exception bug transactinos that were explicitly closed, were throwing an exception, because it would be closing transaction twice --- RMDataManagerLibrary/DataAcccess/SaleData.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RMDataManagerLibrary/DataAcccess/SaleData.cs b/RMDataManagerLibrary/DataAcccess/SaleData.cs index 976ad12..479773f 100644 --- a/RMDataManagerLibrary/DataAcccess/SaleData.cs +++ b/RMDataManagerLibrary/DataAcccess/SaleData.cs @@ -70,6 +70,8 @@ namespace RMDataManagerLibrary.DataAcccess sql.SaveDataInTransaction("dbo.spSaleDetailInsert", item); } + + sql.CommitTransaction(); } catch {