.net - Update MongoDB Document in VB.NET with the C# Driver -


i having problems updating document in mongodb using vb.net & c# driver.

i have code returning document wish update i'm not sure of syntax continue

imports mongodb.bson imports mongodb.driver imports mongodb.driver.builders  dim mongo mongoserver = mongoserver.create() mongo.connect() dim db = mongo.getdatabase("database") dim stock = db.getcollection(of bsondocument)("stock")  dim getdocument = new querydocument("productname", "test") 

see page on how update:

http://docs.mongodb.org/manual/reference/method/db.collection.update/#update-parameter


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -