public async Task <IDictionary <string, string> > ReadMetadataAsync() { var metadata = new Dictionary <string, string>(); try { using (var command = new SQLiteCommand("select * from metadata", connection)) { var reader = await command.ExecuteReaderAsync(); while (await reader.ReadAsync()) { metadata[(string)reader["name"]] = (string)reader["value"]; } } } catch (Exception ex) { Debug.WriteLine("MBTileData: " + ex.Message); } return(metadata); }