diff --git a/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/SplitInsertable.cs b/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/SplitInsertable.cs index 8e345031a..77974e1ae 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/SplitInsertable.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/SplitInsertable.cs @@ -45,7 +45,7 @@ namespace SqlSugar { this.Context.Ado.BeginTran(); var result = await _ExecuteCommandAsync(); - this.Context.Ado.BeginTran(); + this.Context.Ado.CommitTran(); return result; } catch (Exception ex) @@ -91,7 +91,7 @@ namespace SqlSugar { this.Context.Ado.BeginTran(); var result = await _ExecuteReturnSnowflakeIdListAsync(); - this.Context.Ado.BeginTran(); + this.Context.Ado.CommitTran(); return result; } catch (Exception ex)