Update db.dispose

This commit is contained in:
sunkaixuna
2021-08-31 18:20:15 +08:00
parent a050415a1d
commit 17ec6c40e7

View File

@@ -101,7 +101,7 @@ namespace SqlSugar
{ {
if (this.Transaction != null) if (this.Transaction != null)
{ {
this.Transaction.Commit(); this.Transaction.Rollback();
this.Transaction = null; this.Transaction = null;
} }
if (this.Connection != null && this.Connection.State != ConnectionState.Open) if (this.Connection != null && this.Connection.State != ConnectionState.Open)