老大 怎么用SQLSugar 关闭SQLite连接池SQLiteConnection.ClearPool(conn); 返回
SqlSugar
老数据
5
2351
悬赏:5 飞吻
如题..怎么用SQLSugar 关闭SQLite连接池
SQLiteConnection.ClearPool(conn);
热忱回答(5)
-
fate stay night VIP0
2019/6/16((sqliteconnection)db.ado.connection).ClearPool
0 回复 -
John VIP0
2019/6/16@fate stay night:
var sQLiteConnection = ((SQLiteConnection)db.Ado.Connection);
System.Data.SQLite.SQLiteConnection.ClearPool(sQLiteConnection);
System.Data.SQLite.SQLiteConnection.ClearAllPools();
db.Close();
各种测试了还是 以失败告终....
0 回复 -
John VIP0
2019/6/17我去 可以了
System.Data.SQLite.SQLiteConnection.ClearAllPools();
一定要在当前进程程序执行...
0 回复 -
John VIP0
2019/6/18目前 找到一个临时性 解决办法 回收程序池 ..
0 回复 -
ClueeZhuo VIP0
2025/2/28@John:大佬什么办法?回收连接池?
0 回复