当前位置: 代码迷 >> 其他数据库 >> 请教SQLiteConnection中的ConnectionString如何设置比较好
  详细解决方案

请教SQLiteConnection中的ConnectionString如何设置比较好

热度:833   发布时间:2013-02-26 00:00:00.0
请问SQLiteConnection中的ConnectionString怎么设置比较好
我一般都是用下面的代码来设置,只是不清楚到底什么时候应该Pooling为false,什么时候为true,两者我都试了一下,可能我的数据库内容还是很少的,没有感觉出什么不同。

  _cnn = new SQLiteConnection();
  _cnn.SetPassword(passwd);
  _cnn.ConnectionString = "Data Source=" + _file + ";Pooling=False";
  _cnn.Open();

------解决方案--------------------------------------------------------
是否使用连接池。
------解决方案--------------------------------------------------------
如果是PC,用连接池,如果是移动设备,不用。