|
The current UpdateBuilder API only allows the value of the named element to be set.
See the following code UpdateBuilder.cs#L680:
public static UpdateBuilder SetOnInsert(string name, BsonValue value)
|
And UpdateBuilder.cs#L1658:
public UpdateBuilder SetOnInsert(string name, BsonValue value)
|
For completeness, we should consider adding an overloaded method to provide a complete document. For example:
public static UpdateBuilder SetOnInsert(BsonDocument document) { ... }
|
public UpdateBuilder SetOnInsert(BsonDocument document) { ... }
|
|