Table of Contents

Class BsonDocumentUpdateDefinition<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A BsonDocument based update.

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

Type Parameters

TDocument

The type of the document.

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

Constructors

BsonDocumentUpdateDefinition(BsonDocument)

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

public BsonDocumentUpdateDefinition(BsonDocument document)

Parameters

document BsonDocument

The document.

Properties

Document

Gets the document.

public BsonDocument Document { get; }

Property Value

BsonDocument

Methods

Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider)

Renders the update to a BsonValue.

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.