public async Task RemoveAll() { var tweetsCollections = await _tweetsContext.Set <TweetsCollection>().ToListAsync(); foreach (var tweetsCollection in tweetsCollections) { _tweetsContext.Remove(tweetsCollection); } }
public async Task RemoveAll() { var tweetsCollections = await _tweetsContext.Set <TweetsCollection>().ToListAsync(); foreach (var tweetsCollection in tweetsCollections) { _tweetsContext.Remove(tweetsCollection); } }