mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-26 13:43:10 +08:00
Close Connection BUG
This commit is contained in:
@@ -65,7 +65,7 @@ namespace SqlSugar
|
||||
{
|
||||
this.Transaction = null;
|
||||
}
|
||||
if (this.Connection != null && this.Connection.State != ConnectionState.Open)
|
||||
if (this.Connection != null && this.Connection.State == ConnectionState.Open)
|
||||
{
|
||||
this.Connection.Close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user