优化连接池
This commit is contained in:
@@ -330,7 +330,12 @@ namespace FineUIPro.Web
|
||||
{
|
||||
if (BLL.Funs.DBList.ContainsKey(System.Threading.Thread.CurrentThread.ManagedThreadId))
|
||||
{
|
||||
BLL.Funs.DBList.Remove(System.Threading.Thread.CurrentThread.ManagedThreadId);
|
||||
Model.SGGLDB db ;
|
||||
BLL.Funs.DBList.TryRemove(System.Threading.Thread.CurrentThread.ManagedThreadId,out db);
|
||||
if (db != null)
|
||||
{
|
||||
db.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
if (BLL.SQLHelper.GetConn().State == ConnectionState.Open)
|
||||
|
||||
Reference in New Issue
Block a user