谁能说出如何用WriteConcern代替过时的SafeMode?
特别是我对SafeMode.True感兴趣吗?

谢谢。

最佳答案

SafeMode.True转换为WriteConcern.Acknowledged

driver source code, SafeMode.cs:

private static SafeMode __true = new SafeMode(WriteConcern.Acknowledged);

关于c# - MongoDb SafeMode与WriteConcern比较,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21816233/

10-08 22:24