Table of Contents

Class JsonUpdateDefinition<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A JSON string based update.

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

Type Parameters

TDocument

The type of the document.

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

Constructors

JsonUpdateDefinition(string)

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

public JsonUpdateDefinition(string json)

Parameters

json string

The json.

Properties

Json

Gets the json.

public string Json { get; }

Property Value

string

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.