Domanda

I would like to find out if MongoDB has performed an insert, or updated the record. How do I find that out through the C# driver?

Thank you very much!

È stato utile?

Soluzione

The latest version of official c# driver has SafeMode enabled by default, this means that all operations return result of operation via getLastError method. Also SafeMode was renamed into WriteConcern.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top