Table of Contents

Class PipelineUpdateDefinition<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A PipelineDefinition<TInput, TOutput> based update definition.

public sealed class PipelineUpdateDefinition<TDocument> : UpdateDefinition<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance
UpdateDefinition<TDocument>
PipelineUpdateDefinition<TDocument>
Inherited Members
Extension Methods

Constructors

PipelineUpdateDefinition(PipelineDefinition<TDocument, TDocument>)

Initializes a new instance of the PipelineUpdateDefinition<TDocument> class.

public PipelineUpdateDefinition(PipelineDefinition<TDocument, TDocument> pipeline)

Parameters

pipeline PipelineDefinition<TDocument, TDocument>

The pipeline.

Properties

Pipeline

Gets the pipeline.

public PipelineDefinition<TDocument, TDocument> Pipeline { get; }

Property Value

PipelineDefinition<TDocument, TDocument>

Methods

Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider)

Renders the update to a BsonValue that represents BsonArray.

public override BsonValue Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)

Parameters

documentSerializer IBsonSerializer<TDocument>

The document serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

BsonValue

A BsonValue.

ToString()

public override string ToString()

Returns

string

ToString(IBsonSerializer<TDocument>, IBsonSerializerRegistry)

Returns a string that represents this instance.

public string ToString(IBsonSerializer<TDocument> inputSerializer, IBsonSerializerRegistry serializerRegistry)

Parameters

inputSerializer IBsonSerializer<TDocument>

The input serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

Returns

string

A string that represents this instance.

ToString(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider)

Returns a string that represents this instance.

public string ToString(IBsonSerializer<TDocument> inputSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)

Parameters

inputSerializer IBsonSerializer<TDocument>

The input serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

string

A string that represents this instance.