示例#1
0
        public void ConnectToDataBase()
        {
            try
            {
                if (_dbPath == string.Empty) return;

                if (_log == null)
                    _log = new DbLog(new SQLiteConnection(@"Data Source=" + _dbPath + ";Version=3;"));
            }
            catch (Exception ex)
            {
                throw new Exception("Error connection to database: " + ex.Message);
            }
        }
示例#2
0
 public Loging(string dbPath)
 {
     _log = null;
     _dbPath = dbPath;
 }