Class JsonArrayFilterDefinition<TItem>
A JSON string based array filter.
public sealed class JsonArrayFilterDefinition<TItem> : ArrayFilterDefinition<TItem>
Type Parameters
TItem
The type of an item.
- Inheritance
-
ArrayFilterDefinition<TItem>JsonArrayFilterDefinition<TItem>
- Inherited Members
Constructors
JsonArrayFilterDefinition(string)
Initializes a new instance of the BsonDocumentArrayFilterDefinition<TItem> class.
public JsonArrayFilterDefinition(string json)
Parameters
json
stringThe JSON string.
Properties
Document
Gets the document.
public BsonDocument Document { get; }
Property Value
- BsonDocument
The document.
Json
Gets the JSON string.
public string Json { get; }
Property Value
- string
The JSON string.
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.