0
這是我doument更新記錄的MongoDB查找/刪除,並使用C#
{ "_id" : ObjectId("57f65ed25ced690b5408a9d1"), "fbId" : "7854", "Name" : "user1", "pass" : "user1", "Watchtbl" : [ { "wid" : "745", "name" : "azs", "Symboles" : [ { "Name" : "nbv" } ] }, { "wid" : "8965", "name" : "bought stock1", "Symboles" : [ { "Name" : "AAA" }, { "Name" : "BSI" }, { "Name" : "EXXI" }, { "Name" : "AMD" } ] }, { "wid" : "9632", "name" : "bought stock3", "Symboles" : [ { "Name" : "AAA" }, { "Name" : "AMD" } ] } ] }
我想找到與特定查找更新此記錄,比如我想_id和WID和更新搜索該名和部份的Symboles Watchtbl 但它看起來_id和WID不RECO gnized當我嘗試這樣做FILTRE
var builder = Builders<BsonDocument>.Filter;
var filter = builder.Eq("_id", id) & builder.Eq("wid", wid);
它retrun 0