我尝试从数据库集合中检索特定元素。
collection.Find(new BsonDocument()).ForEachAsync(X => Console.WriteLine(X));
此代码提供如下内容:
{" _id" :ObjectId(" 599d420bf2e1abfed53fe3c6")," no" :9,"字" :"写" }
{" _id" :ObjectId(" 599d420bf2e1abfed53fe3c8")," no" :10,"字" :"第一" }
{" _id" :ObjectId(" 599d420bf2e1abfed53fe3ca")," no" :11,"字" :" water" }
但我只想看到:
write
first
water
我该怎么做?谢谢
答案 0 :(得分:0)