Class BsonDocumentFilterDefinition<TDocument>
A BsonDocument based filter.
public sealed class BsonDocumentFilterDefinition<TDocument> : FilterDefinition<TDocument>
Type Parameters
TDocument
The type of the document.
- Inheritance
-
FilterDefinition<TDocument>BsonDocumentFilterDefinition<TDocument>
- Inherited Members
- Extension Methods
Constructors
BsonDocumentFilterDefinition(BsonDocument)
Initializes a new instance of the BsonDocumentFilterDefinition<TDocument> class.
public BsonDocumentFilterDefinition(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 filter to a BsonDocument.
public override BsonDocument Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
documentSerializer
IBsonSerializer<TDocument>The document serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.