Class BsonDocumentArrayFilterDefinition<TItem>
A BsonDocument based array filter.
public sealed class BsonDocumentArrayFilterDefinition<TItem> : ArrayFilterDefinition<TItem>
Type Parameters
TItem
The type of an item.
- Inheritance
-
ArrayFilterDefinition<TItem>BsonDocumentArrayFilterDefinition<TItem>
- Inherited Members
Constructors
BsonDocumentArrayFilterDefinition(BsonDocument)
Initializes a new instance of the BsonDocumentArrayFilterDefinition<TItem> class.
public BsonDocumentArrayFilterDefinition(BsonDocument document)
Parameters
document
BsonDocumentThe document.
Properties
Document
Gets the document.
public BsonDocument Document { get; }
Property Value
- BsonDocument
The document.
Methods
Render(IBsonSerializer, IBsonSerializerRegistry, LinqProvider)
Renders the array filter to a BsonDocument.
public override BsonDocument Render(IBsonSerializer itemSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
itemSerializer
IBsonSerializerThe item serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.
Returns
Render(IBsonSerializer<TItem>, IBsonSerializerRegistry, LinqProvider)
Renders the array filter to a BsonDocument.
public override BsonDocument Render(IBsonSerializer<TItem> itemSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
itemSerializer
IBsonSerializer<TItem>The item serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.