Пример #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="connectionString">连接SQLite库字符串</param>
 public SqLiteHelper(string connectionString)
 {
     try
     {
         _connectionString = connectionString;
         dbConnection      = new SQLiteConnection(connectionString);
         dbConnection.Open();
     }
     catch (Exception e)
     {
         LogClass.LogToFile(e.Message);
     }
 }
Пример #2
0
 /// <summary>
 /// 本类log
 /// </summary>
 /// <param name="s"></param>
 static void Log(string s)
 {
     //  Console.WriteLine("class SqLiteHelper:::" + s);
     LogClass.LogToFile("class SqLiteHelper:::" + s);
 }