Exemple #1
0
 //数据库连接
 private bool DBConnection()
 {
     try
     {
         file_conn = FileConnection.Create(dbPath);
     }
     catch (SQLiteException)
     {
         return(false);
     }
     return(true);
 }
Exemple #2
0
 //数据库连接
 private bool DBConnection()
 {
     try
     {
         //连接文件数据库
         file_conn = FileConnection.Create(dbPath);
         //连接内存数据库
         mem_conn = MemConnection.Create();
     }
     catch (SQLiteException)
     {
         return(false);
     }
     return(true);
 }