private string GetDBPath() { IO.FileManager.FileManager fm = new IO.FileManager.FileManager(); fm.TryRecreateWorkspace(); string path = System.IO.Path.Combine(fm.DatabaseDirectory, SqliteFilename); return(path); }
public void DropDatabase() { if (conn != null) { conn.Rollback(); conn.Close(); conn.Dispose(); conn = null; } IO.FileManager.FileManager fm = new IO.FileManager.FileManager(); string path = GetDBPath(); fm.DeleteFile(path); }