百度试题 题目在MongoDB中,删除文档的命令是( ) A.delete fromB.db.collectionName.remove()C.db.collectionName.delect()D.db.collectionName.drop()相关知识点: 试题来源: 解析反馈 收藏
_savedPosts =newList<Post>();varmongoRepository =newMongoRepository("blogspecs"); mongoRepository.DeleteCollection<BlogSettings>(); mongoRepository.DeleteCollection<Post>(); _repository = mongoRepository;for(vari =0; i <10; i++) {varpost = Post.CreatePost("Title"+ i,"Body"+ i,"BjartN"...