我一般都是用下面的代码来设置,只是不清楚到底什么时候应该Pooling为false,什么时候为true,两者我都试了一下,可能我的数据库内容还是很少的,没有感觉出什么不同。
_cnn = new SQLiteConnection();
_cnn.SetPassword(passwd);
_cnn.ConnectionString = "Data Source=" + _file + ";Pooling=False";
_cnn.Open();
------解决方案--------------------------------------------------------
是否使用连接池。
------解决方案--------------------------------------------------------
如果是PC,用连接池,如果是移动设备,不用。