Пример #1
0
        private string GetDBPath()
        {
            IO.FileManager.FileManager fm = new IO.FileManager.FileManager();
            fm.TryRecreateWorkspace();
            string path = System.IO.Path.Combine(fm.DatabaseDirectory, SqliteFilename);

            return(path);
        }
Пример #2
0
        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);
        }