Ejemplo n.º 1
0
        public async Task ClearCollection()
        {
            var filter = Builders <SearchTerm> .Filter.Exists(term => term.Id);

            await collection.DeleteManyAsync(filter);
        }
Ejemplo n.º 2
0
        public async Task ClearCollection()
        {
            var filter = Builders <Answer> .Filter.Exists(answer => answer.Id);

            await collection.DeleteManyAsync(filter);
        }