Close Connection BUG

This commit is contained in:
sunkaixuan
2017-06-08 19:47:40 +08:00
parent c426ed649f
commit b137e42fe1

View File

@@ -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();
}