public async Task InitializeAsync() { //delete orphaned tables IReadOnlyCollection <string> tableNames = await _tables.ListTableNamesAsync(); foreach (string table in tableNames.Where(n => n.StartsWith(TestTablePrefix))) { await _tables.DeleteAsync(table); } }
public async Task DeleteTable_NonExisting_DoesntCrash() { await _tables.DeleteAsync(_tableName + "del"); }
/// <summary> /// Deletes record by key /// </summary> public static Task DeleteAsync(this IKeyValueStorage storage, string tableName, Key key) { return(storage.DeleteAsync(tableName, new[] { key })); }