diff --git a/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs index 6869577cd..5707e3974 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs @@ -101,7 +101,7 @@ namespace SqlSugar { if (this.Transaction != null) { - this.Transaction.Commit(); + this.Transaction.Rollback(); this.Transaction = null; } if (this.Connection != null && this.Connection.State != ConnectionState.Open)