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); } }
public Loging(string dbPath) { _log = null; _dbPath = dbPath; }