private static BsonDocument DeleteIdFrom(BsonValue document)
 {
     var result = (BsonDocument) document.Clone();
     result.Remove("_id");
     return result;
 }
Пример #2
0
 /// <summary>
 /// Creates a shallow clone of the element (see also DeepClone).
 /// </summary>
 /// <returns>A shallow clone of the element.</returns>
 public BsonElement Clone()
 {
     return(new BsonElement(name, value.Clone()));
 }