Table of Contents

Class UpdateDefinitionBuilder<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A builder for an UpdateDefinition<TDocument>.

public sealed class UpdateDefinitionBuilder<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance
UpdateDefinitionBuilder<TDocument>
Inherited Members

Methods

AddToSetEach<TItem>(FieldDefinition<TDocument>, IEnumerable<TItem>)

Creates an add to set operator.

AddToSetEach<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, IEnumerable<TItem>)

Creates an add to set operator.

AddToSet<TItem>(FieldDefinition<TDocument>, TItem)

Creates an add to set operator.

AddToSet<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, TItem)

Creates an add to set operator.

BitwiseAnd<TField>(FieldDefinition<TDocument, TField>, TField)

Creates a bitwise and operator.

BitwiseAnd<TField>(Expression<Func<TDocument, TField>>, TField)

Creates a bitwise and operator.

BitwiseOr<TField>(FieldDefinition<TDocument, TField>, TField)

Creates a bitwise or operator.

BitwiseOr<TField>(Expression<Func<TDocument, TField>>, TField)

Creates a bitwise or operator.

BitwiseXor<TField>(FieldDefinition<TDocument, TField>, TField)

Creates a bitwise xor operator.

BitwiseXor<TField>(Expression<Func<TDocument, TField>>, TField)

Creates a bitwise xor operator.

Combine(params UpdateDefinition<TDocument>[])

Creates a combined update.

Combine(IEnumerable<UpdateDefinition<TDocument>>)

Creates a combined update.

CurrentDate(FieldDefinition<TDocument>, UpdateDefinitionCurrentDateType?)

Creates a current date operator.

CurrentDate(Expression<Func<TDocument, object>>, UpdateDefinitionCurrentDateType?)

Creates a current date operator.

Inc<TField>(FieldDefinition<TDocument, TField>, TField)

Creates an increment operator.

Inc<TField>(Expression<Func<TDocument, TField>>, TField)

Creates an increment operator.

Max<TField>(FieldDefinition<TDocument, TField>, TField)

Creates a max operator.

Max<TField>(Expression<Func<TDocument, TField>>, TField)

Creates a max operator.

Min<TField>(FieldDefinition<TDocument, TField>, TField)

Creates a min operator.

Min<TField>(Expression<Func<TDocument, TField>>, TField)

Creates a min operator.

Mul<TField>(FieldDefinition<TDocument, TField>, TField)

Creates a multiply operator.

Mul<TField>(Expression<Func<TDocument, TField>>, TField)

Creates a multiply operator.

Pipeline(PipelineDefinition<TDocument, TDocument>)

Creates an update pipeline.

PopFirst(FieldDefinition<TDocument>)

Creates a pop operator.

PopFirst(Expression<Func<TDocument, object>>)

Creates a pop first operator.

PopLast(FieldDefinition<TDocument>)

Creates a pop operator.

PopLast(Expression<Func<TDocument, object>>)

Creates a pop first operator.

PullAll<TItem>(FieldDefinition<TDocument>, IEnumerable<TItem>)

Creates a pull operator.

PullAll<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, IEnumerable<TItem>)

Creates a pull operator.

PullFilter<TItem>(FieldDefinition<TDocument>, FilterDefinition<TItem>)

Creates a pull operator.

PullFilter<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, FilterDefinition<TItem>)

Creates a pull operator.

PullFilter<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, Expression<Func<TItem, bool>>)

Creates a pull operator.

Pull<TItem>(FieldDefinition<TDocument>, TItem)

Creates a pull operator.

Pull<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, TItem)

Creates a pull operator.

PushEach<TItem>(FieldDefinition<TDocument>, IEnumerable<TItem>, int?, int?, SortDefinition<TItem>)

Creates a push operator.

PushEach<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, IEnumerable<TItem>, int?, int?, SortDefinition<TItem>)

Creates a push operator.

Push<TItem>(FieldDefinition<TDocument>, TItem)

Creates a push operator.

Push<TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, TItem)

Creates a push operator.

Rename(FieldDefinition<TDocument>, string)

Creates a field renaming operator.

Rename(Expression<Func<TDocument, object>>, string)

Creates a field renaming operator.

SetOnInsert<TField>(FieldDefinition<TDocument, TField>, TField)

Creates a set on insert operator.

SetOnInsert<TField>(Expression<Func<TDocument, TField>>, TField)

Creates a set on insert operator.

Set<TField>(FieldDefinition<TDocument, TField>, TField)

Creates a set operator.

Set<TField>(Expression<Func<TDocument, TField>>, TField)

Creates a set operator.

Unset(FieldDefinition<TDocument>)

Creates an unset operator.

Unset(Expression<Func<TDocument, object>>)

Creates an unset operator.