UpdateTDocument Class |
Namespace: MongoDB.Driver.Builders
The UpdateTDocument type exposes the following members.
Name | Description | |
---|---|---|
AddToSetTValue |
Adds a value to a named array element if the value is not already in the array (see $addToSet).
| |
AddToSetEachTValue |
Adds a list of values to a named array element adding each value only if it not already in the array (see $addToSet and $each).
| |
BitwiseAnd(ExpressionFuncTDocument, Int32, Int32) |
Sets the named element to the bitwise and of its value with another value (see $bit with "and").
| |
BitwiseAnd(ExpressionFuncTDocument, Int64, Int64) |
Sets the named element to the bitwise and of its value with another value (see $bit with "and").
| |
BitwiseOr(ExpressionFuncTDocument, Int32, Int32) |
Sets the named element to the bitwise or of its value with another value (see $bit with "or").
| |
BitwiseOr(ExpressionFuncTDocument, Int64, Int64) |
Sets the named element to the bitwise or of its value with another value (see $bit with "or").
| |
BitwiseXor(ExpressionFuncTDocument, Int32, Int32) |
Sets the named element to the bitwise xor of its value with another value (see $bit with "xor").
| |
BitwiseXor(ExpressionFuncTDocument, Int64, Int64) |
Sets the named element to the bitwise xor of its value with another value (see $bit with "xor").
| |
Combine(IEnumerableIMongoUpdate) |
Combines several UpdateBuilders into a single UpdateBuilder.
| |
Combine(IMongoUpdate) |
Combines several UpdateBuilders into a single UpdateBuilder.
| |
CurrentDate(ExpressionFuncTDocument, BsonDateTime) |
Sets the value of the named element to the current date (see $currentDate).
| |
CurrentDate(ExpressionFuncTDocument, BsonTimestamp) |
Sets the value of the named element to the current date (see $currentDate).
| |
CurrentDate(ExpressionFuncTDocument, DateTime) |
Sets the value of the named element to the current date (see $currentDate).
| |
Inc(ExpressionFuncTDocument, Double, Double) |
Increments the named element by a value (see $inc).
| |
Inc(ExpressionFuncTDocument, Int32, Int32) |
Increments the named element by a value (see $inc).
| |
Inc(ExpressionFuncTDocument, Int64, Int64) |
Increments the named element by a value (see $inc).
| |
MaxTMember |
Updates the named element if and only if the provided value is greater than its current value (see $max).
| |
MinTMember |
Updates the named element if and only if the provided value is less than its current value (see $max).
| |
Mul(ExpressionFuncTDocument, Double, Double) |
Multiplies the named element by a value (see $mul).
| |
Mul(ExpressionFuncTDocument, Int32, Int32) |
Multiplies the named element by a value (see $mul).
| |
Mul(ExpressionFuncTDocument, Int64, Int64) |
Multiplies the named element by a value (see $mul).
| |
PopFirstTValue |
Removes the first value from the named array element (see $pop).
| |
PopLastTValue |
Removes the last value from the named array element (see $pop).
| |
PullTValue(ExpressionFuncTDocument, IEnumerableTValue, TValue) |
Removes all values from the named array element that are equal to some value (see $pull).
| |
PullTValue(ExpressionFuncTDocument, IEnumerableTValue, FuncQueryBuilderTValue, IMongoQuery) |
Removes all values from the named array element that match some query (see $pull).
| |
PullAllTValue |
Removes all values from the named array element that are equal to any of a list of values (see $pullAll).
| |
PushTValue |
Adds a value to the end of the named array element (see $push).
| |
PushAllTValue |
Adds a list of values to the end of the named array element (see $pushAll).
| |
PushEachTValue(ExpressionFuncTDocument, IEnumerableTValue, IEnumerableTValue) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushEachTValue(ExpressionFuncTDocument, IEnumerableTValue, PushEachOptions, IEnumerableTValue) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushEachTValue(ExpressionFuncTDocument, IEnumerableTValue, ActionPushEachOptionsBuilderTValue, IEnumerableTValue) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
Replace |
Replaces the entire document with a new document (the _id must remain the same).
| |
SetTMember |
Sets the value of the named element to a new value (see $set).
| |
SetOnInsertTMember |
Sets the value of the named element to the specified value only when an insert occurs
as part of an upsert operation (see $setOnInsert).
| |
UnsetTMember |
Removes the named element from the document (see $unset).
|