Method Replace
Replace(TDocument)
Replaces the entire document with a new document (the _id must remain the same).
public static IMongoUpdate Replace(TDocument document)
Parameters
document
TDocumentThe replacement document.
Returns
- IMongoUpdate
An UpdateWrapper.