public void DeleteDatabase()
 {
     using (var connection = new SqlConnection(_masterConnectionString)) {
         var server     = new Server(new ServerConnection(connection));
         var sqlCommand = _genericSqlScriptsReader.ReadCloseConnectionsAndDeleteDatabaseSql(_databaseName);
         try {
             server.ConnectionContext.ExecuteNonQuery(sqlCommand);
             server.ConnectionContext.CommitTransaction();
         }
         catch (Exception ex) {
             throw new ExecutionFailureException(
                       $"While deleting the database, the execution of the following command failed: {sqlCommand}",
                       ex);
         }
     }
 }