标签: c# .net mongodb mongodb-.net-driver
如何在不使用过滤器的情况下一次从DB中删除许多文档。我有对象列表,我想删除所有对象,就像在insertMany我可以传递我的新对象。
f.e db.GetCollection<Collection>("Test").InsertMany(objectsToAdd);
db.GetCollection<Collection>("Test").InsertMany(objectsToAdd);