0
我想插入带有子项的记录,然后在c#中的屏幕上显示所写的内容。这是我到目前为止:mongo bson插入/读取子记录
MongoCollection<BsonDocument> house= building.GetCollection<BsonDocument>("house");
BsonDocument rooms= new BsonDocument {
{ "roomName", name},
{ "location", <--child array here: 1stfloor, 2ndlfloor, topfloor.
{ "roomID", guidstring}
};
house.Insert(rooms);