Method Replace
Replace<TNominalType>(TNominalType)
Replaces the entire document with a new document (the _id must remain the same).
public static IMongoUpdate Replace<TNominalType>(TNominalType document)
Parameters
document
TNominalTypeThe replacement document.
Returns
- IMongoUpdate
An UpdateWrapper.
Type Parameters
TNominalType
The nominal type of the replacement document
Replace(Type, object)
Replaces the entire document with a new document (the _id must remain the same).
public static IMongoUpdate Replace(Type nominalType, object document)
Parameters
nominalType
TypeThe nominal type of the replacement document
document
objectThe replacement document.
Returns
- IMongoUpdate
An UpdateWrapper.