diff --git a/Src/Asp.Net/SqlSugar/SqlSugar.csproj b/Src/Asp.Net/SqlSugar/SqlSugar.csproj
index bf786cdd3..1ce021eaa 100644
--- a/Src/Asp.Net/SqlSugar/SqlSugar.csproj
+++ b/Src/Asp.Net/SqlSugar/SqlSugar.csproj
@@ -209,6 +209,7 @@
+
diff --git a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs
index 585fd69df..d770f27d3 100644
--- a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs
+++ b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs
@@ -659,7 +659,12 @@ namespace SqlSugar
public void CommitTran()
{
this.Context.Ado.CommitTran();
- AllClientEach(it => it.Ado.CommitTran());
+ AllClientEach(it =>
+ {
+
+ it.Ado.CommitTran();
+
+ });
_IsAllTran = false;
}
public DbResult UseTran(Action action, Action errorCallBack = null)
@@ -766,7 +771,12 @@ namespace SqlSugar
public void RollbackTran()
{
this.Context.Ado.RollbackTran();
- AllClientEach(it => it.Ado.RollbackTran());
+ AllClientEach(it =>
+ {
+
+ it.Ado.RollbackTran();
+
+ });
_IsAllTran = false;
}
public void Close()
diff --git a/Src/Asp.Net/SqlSugar/Utilities/SugarRetry.cs b/Src/Asp.Net/SqlSugar/Utilities/SugarRetry.cs
new file mode 100644
index 000000000..10c7fdd55
--- /dev/null
+++ b/Src/Asp.Net/SqlSugar/Utilities/SugarRetry.cs
@@ -0,0 +1,166 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+
+namespace SqlSugar
+{
+ public static class SugarRetry
+ {
+
+ public static void Execute(Action action, TimeSpan retryInterval, int retryCount = 3)
+ {
+ Execute