Namespace Cratis.Applications.MongoDB
Classes
- AcronymFriendlyCamelCaseElementNameConvention
A convention that sets the element name the same as the member name with the first character lower cased unless it starts with an acronym.
Based on https://github.com/mongodb/mongo-csharp-driver/blob/f41c21efa6061f92c955748caaca123dae8e51ac/src/MongoDB.Bson/Serialization/Conventions/CamelCaseElementNameConvention.cs.
- 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.
- DefaultMongoServerResolver
Represents an implementation of IMongoServerResolver that resolves a configured MongoDB.Driver.MongoUrl.
- 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.
- ModelNameResolverNotConfigured
The exception that is thrown when the IMongoServerResolver is missing.
- 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.
- 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.
- TimeOnlySerializer
Represents a serializer for handling serialization of TimeOnly.
- 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.
- 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.