Remove useless code

This commit is contained in:
sunkaixuan
2022-08-31 17:27:43 +08:00
parent af5b8f18e7
commit 532e8c9b5a

View File

@@ -141,10 +141,10 @@ namespace SqlSugar
this.Transaction.Rollback();
this.Transaction = null;
}
if (this.Connection != null && this.Connection.State != ConnectionState.Open)
{
this.Connection.Close();
}
//if (this.Connection != null && this.Connection.State != ConnectionState.Open)
//{
// this.Connection.Close();
//}
if (this.Connection != null)
{
this.Connection.Dispose();