Update Class |
Namespace: MongoDB.Driver.Builders
The Update type exposes the following members.
Name | Description | |
---|---|---|
AddToSet |
Adds a value to a named array element if the value is not already in the array (see $addToSet).
| |
AddToSetEach(String, BsonArray) |
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).
| |
AddToSetEach(String,BsonValue[]) |
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).
| |
AddToSetEach(String, IEnumerable<BsonValue>) |
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).
| |
AddToSetEachWrapped<T>(String, IEnumerable<T>) |
Adds a list of wrapped values to a named array element adding each value only if it not already in the array (see $addToSet and $each).
| |
AddToSetEachWrapped<T>(String,T[]) |
Adds a list of wrapped values to a named array element adding each value only if it not already in the array (see $addToSet and $each).
| |
AddToSetWrapped<T> |
Adds a wrapped value to a named array element if the value is not already in the array (see $addToSet).
| |
BitwiseAnd(String, Int32) |
Sets the named element to the bitwise and of its value with another value (see $bit with "and").
| |
BitwiseAnd(String, Int64) |
Sets the named element to the bitwise and of its value with another value (see $bit with "and").
| |
BitwiseOr(String, Int32) |
Sets the named element to the bitwise or of its value with another value (see $bit with "or").
| |
BitwiseOr(String, Int64) |
Sets the named element to the bitwise or of its value with another value (see $bit with "or").
| |
BitwiseXor(String, Int32) |
Sets the named element to the bitwise xor of its value with another value (see $bit with "xor").
| |
BitwiseXor(String, Int64) |
Sets the named element to the bitwise xor of its value with another value (see $bit with "xor").
| |
Combine(IMongoUpdate[]) |
Combines several UpdateBuilders into a single UpdateBuilder.
| |
Combine(IEnumerable<IMongoUpdate>) |
Combines several UpdateBuilders into a single UpdateBuilder.
| |
CurrentDate(String) |
Sets the value of the named element to the current date (see $currentDate).
| |
CurrentDate(String, UpdateCurrentDateType) |
Sets the value of the named element to the current date (see $currentDate).
| |
Inc(String, Double) |
Increments the named element by a value (see $inc).
| |
Inc(String, Int32) |
Increments the named element by a value (see $inc).
| |
Inc(String, Int64) |
Increments the named element by a value (see $inc).
| |
Max |
Updates the named element if and only if the provided value is greater than its current value (see $max).
| |
Min |
Updates the named element if and only if the provided value is less than its current value (see $max).
| |
Mul(String, Double) |
Multiplies the named element by a value (see $mul).
| |
Mul(String, Int32) |
Multiplies the named element by a value (see $mul).
| |
Mul(String, Int64) |
Multiplies the named element by a value (see $mul).
| |
PopFirst |
Removes the first value from the named array element (see $pop).
| |
PopLast |
Removes the last value from the named array element (see $pop).
| |
Pull(String, BsonValue) |
Removes all values from the named array element that are equal to some value (see $pull).
| |
Pull(String, IMongoQuery) |
Removes all values from the named array element that match some query (see $pull).
| |
PullAll(String, BsonArray) |
Removes all values from the named array element that are equal to any of a list of values (see $pullAll).
| |
PullAll(String,BsonValue[]) |
Removes all values from the named array element that are equal to any of a list of values (see $pullAll).
| |
PullAll(String, IEnumerable<BsonValue>) |
Removes all values from the named array element that are equal to any of a list of values (see $pullAll).
| |
PullAllWrapped<T>(String, IEnumerable<T>) |
Removes all values from the named array element that are equal to any of a list of wrapped values (see $pullAll).
| |
PullAllWrapped<T>(String,T[]) |
Removes all values from the named array element that are equal to any of a list of wrapped values (see $pullAll).
| |
PullWrapped<T> |
Removes all values from the named array element that are equal to some wrapped value (see $pull).
| |
Push |
Adds a value to the end of the named array element (see $push).
| |
PushAll(String, BsonArray) |
Adds a list of values to the end of the named array element (see $pushAll).
| |
PushAll(String,BsonValue[]) |
Adds a list of values to the end of the named array element (see $pushAll).
| |
PushAll(String, IEnumerable<BsonValue>) |
Adds a list of values to the end of the named array element (see $pushAll).
| |
PushAllWrapped<T>(String, IEnumerable<T>) |
Adds a list of wrapped values to the end of the named array element (see $pushAll).
| |
PushAllWrapped<T>(String,T[]) |
Adds a list of wrapped values to the end of the named array element (see $pushAll).
| |
PushEach(String, BsonArray) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushEach(String,BsonValue[]) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushEach(String, IEnumerable<BsonValue>) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushEach(String, PushEachOptions, BsonArray) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushEach(String, PushEachOptions,BsonValue[]) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushEach(String, PushEachOptions, IEnumerable<BsonValue>) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushEachWrapped<T>(String, IEnumerable<T>) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushEachWrapped<T>(String,T[]) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushEachWrapped<T>(String, PushEachOptions, IEnumerable<T>) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushEachWrapped<T>(String, PushEachOptions,T[]) |
Adds a list of values to the end of the named array element (see $push and $each).
| |
PushWrapped<T> |
Adds a wrapped value to the end of the named array element (see $push).
| |
Rename |
Renames an element (see $rename).
| |
Replace(Type, Object) |
Replaces the entire document with a new document (the _id must remain the same).
| |
Replace<TNominalType>(TNominalType) |
Replaces the entire document with a new document (the _id must remain the same).
| |
Set |
Sets the value of the named element to a new value (see $set).
| |
SetOnInsert |
Sets the value of the named element to the specified value only when an insert occurs
as part of an upsert operation (see $setOnInsert).
| |
SetWrapped<T> |
Sets the value of the named element to a new wrapped value (see $set).
| |
Unset |
Removes the named element from the document (see $unset).
|