Class EncryptedCollectionBuilder<TDocument>
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.Encryption.dll
A builder class for creating encrypted collection schemas.
public class EncryptedCollectionBuilder<TDocument>
Type Parameters
TDocument
The type of the document in the collection.
- Inheritance
-
EncryptedCollectionBuilder<TDocument>
- Inherited Members
Methods
- EncryptMetadata(Guid?, EncryptionAlgorithm?)
Configures encryption metadata for the collection.
- PatternProperty(string, BsonType, EncryptionAlgorithm?, Guid?)
Adds a pattern property to the schema with encryption settings.
- PatternProperty(string, IEnumerable<BsonType>, EncryptionAlgorithm?, Guid?)
Adds a pattern property to the schema with encryption settings.
- PatternProperty<TField>(FieldDefinition<TDocument>, Action<EncryptedCollectionBuilder<TField>>)
Adds a nested pattern property to the schema.
- PatternProperty<TField>(Expression<Func<TDocument, TField>>, Action<EncryptedCollectionBuilder<TField>>)
Adds a nested pattern property to the schema.
- Property(FieldDefinition<TDocument>, BsonType, EncryptionAlgorithm?, Guid?)
Adds a property to the schema with encryption settings.
- Property(FieldDefinition<TDocument>, IEnumerable<BsonType>, EncryptionAlgorithm?, Guid?)
Adds a property to the schema with encryption settings.
- Property<TField>(FieldDefinition<TDocument>, Action<EncryptedCollectionBuilder<TField>>)
Adds a nested property to the schema.
- Property<TField>(Expression<Func<TDocument, TField>>, BsonType, EncryptionAlgorithm?, Guid?)
Adds a property to the schema with encryption settings.
- Property<TField>(Expression<Func<TDocument, TField>>, Action<EncryptedCollectionBuilder<TField>>)
Adds a nested property to the schema.
- Property<TField>(Expression<Func<TDocument, TField>>, IEnumerable<BsonType>, EncryptionAlgorithm?, Guid?)
Adds a property to the schema with encryption settings.