Class ArrayFilterDefinition<TItem>
Base class for array filters.
public abstract class ArrayFilterDefinition<TItem> : ArrayFilterDefinition
Type Parameters
TItem
The type of an item.
- Inheritance
-
ArrayFilterDefinition<TItem>
- Derived
- Inherited Members
Properties
ItemType
Gets the type of an item.
public override Type ItemType { get; }
Property Value
- Type
The type of an item.
Methods
Render(IBsonSerializer<TItem>, IBsonSerializerRegistry, LinqProvider)
Renders the array filter to a BsonDocument.
public abstract BsonDocument Render(IBsonSerializer<TItem> itemSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
itemSerializer
IBsonSerializer<TItem>The item serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.
Returns
Operators
implicit operator ArrayFilterDefinition<TItem>(BsonDocument)
Performs an implicit conversion from BsonDocument to ArrayFilterDefinition<TItem>.
public static implicit operator ArrayFilterDefinition<TItem>(BsonDocument document)
Parameters
document
BsonDocumentThe document.
Returns
- ArrayFilterDefinition<TItem>
The result of the conversion.
implicit operator ArrayFilterDefinition<TItem>(string)
Performs an implicit conversion from string to ArrayFilterDefinition<TItem>.
public static implicit operator ArrayFilterDefinition<TItem>(string json)
Parameters
json
stringThe JSON string.
Returns
- ArrayFilterDefinition<TItem>
The result of the conversion.