Class BsonDocumentIndexKeysDefinition<TDocument>
A BsonDocument based index keys definition.
public sealed class BsonDocumentIndexKeysDefinition<TDocument> : IndexKeysDefinition<TDocument>
Type Parameters
TDocument
The type of the document.
- Inheritance
-
IndexKeysDefinition<TDocument>BsonDocumentIndexKeysDefinition<TDocument>
- Inherited Members
- Extension Methods
Constructors
BsonDocumentIndexKeysDefinition(BsonDocument)
Initializes a new instance of the BsonDocumentIndexKeysDefinition<TDocument> class.
public BsonDocumentIndexKeysDefinition(BsonDocument document)
Parameters
document
BsonDocumentThe document.
Properties
Document
Gets the document.
public BsonDocument Document { 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
documentSerializer
IBsonSerializer<TDocument>The document serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.