Class BsonDocumentUpdateDefinition<TDocument>
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
BsonDocumentThe document.
Properties
Document
Gets the document.
public BsonDocument Document { 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.