Class JsonIndexKeysDefinition<TDocument>
A JSON string based index keys definition.
public sealed class JsonIndexKeysDefinition<TDocument> : IndexKeysDefinition<TDocument>
Type Parameters
TDocumentThe type of the document.
- Inheritance
-
IndexKeysDefinition<TDocument>JsonIndexKeysDefinition<TDocument>
- Inherited Members
- Extension Methods
Constructors
JsonIndexKeysDefinition(string)
Initializes a new instance of the JsonIndexKeysDefinition<TDocument> class.
public JsonIndexKeysDefinition(string json)
Parameters
jsonstringThe json.
Properties
Json
Gets the json.
public string Json { get; }
Property Value
Methods
Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider)
Renders the index keys definition to a BsonDocument.
public override BsonDocument Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
documentSerializerIBsonSerializer<TDocument>The document serializer.
serializerRegistryIBsonSerializerRegistryThe serializer registry.
linqProviderLinqProviderThe LINQ provider.