Class JsonFilterDefinition<TDocument>
A JSON string based filter.
public sealed class JsonFilterDefinition<TDocument> : FilterDefinition<TDocument>
Type Parameters
TDocument
The type of the document.
- Inheritance
-
FilterDefinition<TDocument>JsonFilterDefinition<TDocument>
- Inherited Members
- Extension Methods
Constructors
JsonFilterDefinition(string)
Initializes a new instance of the JsonFilterDefinition<TDocument> class.
public JsonFilterDefinition(string json)
Parameters
json
stringThe json.
Properties
Json
Gets the json.
public string Json { 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.