public void CreateDatabase() { //dbPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), dbName+".db3"); db = new EventSQLiteAsyncConnection(dbPath); db.AfterInsert += Db_AfterInsert; db.AfterUpdate += Db_AfterUpdate; }
public void DropDatabase() { db = null; if (File.Exists(dbPath)) { File.Delete(dbPath); } Complete = false; }