Table of Contents

Namespace Cratis.Arc.MongoDB

Classes

BsonClassMapExtension

Extension methods for working with MongoDB.Bson.Serialization.BsonClassMap<TClass>.

ConceptSerializationProvider

Represents a MongoDB.Bson.Serialization.IBsonSerializationProvider for concepts.

ConceptSerializer<T>

Represents a MongoDB.Bson.Serialization.IBsonSerializer<TValue> for ConceptAs<T> types.

ConventionPacks

Holds well known names for convention packs.

CustomDiscriminatorConvention

Represents a custom convention for setting the default discriminator on class maps.

CustomObjectDiscriminatorConvention

Represents a custom MongoDB.Bson.Serialization.Conventions.IDiscriminatorConvention for handling object properties.

DateOnlySerializer

Represents a serializer for handling serialization of DateOnly.

DateTimeOffsetSupportingBsonDateTimeSerializer

Represents a serializer for handling serialization of DateTimeOffset to and from MongoDB.

DefaultMongoDatabaseNameResolver

Represents an implementation of IMongoDatabaseNameResolver that resolves a configured database name with tenant suffix.

DefaultMongoServerResolver

Represents an implementation of IMongoServerResolver that resolves a configured MongoDB.Driver.MongoUrl.

DerivedTypeDiscriminatorConvention

Represents a MongoDB discriminator convention for handling types that have DerivedTypeAttribute.

IgnoreConventionsAttribute

Used to mark models for ignoring specific convention packs.

IgnoreConventionsAttributeFilter

Represents an implementation of ICanFilterMongoDBConventionPacksForType for filtering based on IgnoreConventionsAttribute.

MissingValueKeyInConcept

Exception that gets thrown when a concept is missing a value key.

MongoCollectionAdapter<T>

Represents an adapter for MongoDB.Driver.IMongoCollection<TDocument> to overcome shortcomings of open generic service registrations with the default ServiceCollection registrations.

MongoDBBuilder

Represents an implementation of IMongoDBBuilder.

MongoDBBuilderExtensions

Provides extension methods for the IMongoDBBuilder.

MongoDBClientFactory

Represents an implementation of IMongoDBClientFactory.

MongoDBConventionPackDefinition

Represents a definition for a MongoDB convention pack.

MongoDBDefaults

Represents the setup of MongoDB defaults.

MongoDBOptions

Represents the configuration for MongoDB.

MongoDatabaseNameResolverNotConfigured

The exception that is thrown when the IMongoServerResolver is missing.

MongoServerResolverNotConfigured

The exception that is thrown when the IMongoServerResolver is missing.

NamingPolicyNameConvention

A naming policy based name convention for MongoDB member maps. This convention applies a naming policy to the element names of member maps.

NamingPolicyNotConfigured

The exception that is thrown when the naming policy for MongoDB has not been configured.

TimeOnlySerializer

Represents a serializer for handling serialization of TimeOnly.

TimeSpanSerializer

Represents a serializer for handling serialization of TimeSpan.

TypeExtensions

Extension methods for Type.

TypeSerializer

Represents a serializer for Type.

UnableToDeserializeValueForConcept

Exception that gets thrown when a value cannot be deserialized for a concept.

UnknownType

Exception that gets thrown when an unknown type is encountered.

Interfaces

IBsonClassMapFor<T>

Defines a map for mapping a type to bson for MongoDB.

ICanFilterMongoDBConventionPacksForType

Defines a system that can tell whether a specific Type should be affected by a MongoDB.Bson.Serialization.Conventions.IConventionPack.

ICanProvideMongoDBConventionPacks

Defines a system that can provide convention packs for MongoDB.

IMongoDBBuilder

Defines the builder for MongoDB.

IMongoDBClientFactory

Defines a factory that is capable of creating MongoDB.Driver.IMongoClient instances.

IMongoDatabaseNameResolver

Defines a system that can resolve the name of a MongoDB database.

IMongoServerResolver

Defines a system that can resolve a MongoDB.Driver.MongoUrl.