MongoDB
 SQL >> Database >  >> NoSQL >> MongoDB

MongoDB C#: leggere documenti con QueryDocument o BSONDocument

Puoi creare un documento di query in questo modo:

new QueryDocument("_id", new ObjectId("4B414D000000011613CD"))

In alternativa può funzionare anche:

new BSONDocument { { "_id", "4B414D000000011613CD" } }