Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
为了节约网络流量,C#如何从MongoDB只返回指定的字段,而不是整个文档?
@x4_965be
使用 Projection
var projection = Builders<BsonDocument>.Projection.Exclude("_id"); var document = collection.Find(new BsonDocument()).Project(projection).First();
与 萌阔论坛 的连接断开,我们正在尝试重连,请耐心等待