Class JsonUpdateDefinition<TDocument>
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
stringThe json.
Properties
Json
Gets the json.
public string Json { get; }
Property Value
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
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.