allow to reset database

This commit is contained in:
2022-05-16 18:48:55 +02:00
parent 2542dce79f
commit f362d7b2a0
2 changed files with 7 additions and 3 deletions

View File

@@ -39,6 +39,7 @@ namespace it_projekt
db = Database.getDatabase(user, password);
if (db.Persons == null)
{
Database.resetDatabase();
MessageBox.Show("Connection to Database failed! \nPlease Try again.", "Database Error!");
}
else {