MongoDB.Bson.Serialization.Conventions Namespace (original) (raw)

The various conventions used during serialization/deserialization of BSON data are represented by the types in the MongoDB.Bson.Serialization.Conventions namespace.

| | Class | Description | | | ------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Public class | AttributeConventionPack | Convention pack for applying attributes. | | Public class | CamelCaseElementNameConvention | A convention that sets the element name the same as the member name with the first character lower cased. | | Public class | ConventionBase | Base class for a convention. | | Public class | ConventionPack | A mutable pack of conventions. | | Public class | ConventionRegistry | Represents a registry of conventions. | | Public class | ConventionRunner | Runs the conventions against a BsonClassMap and its BsonMemberMaps. | | Public class | DefaultConventionPack | Convention pack of defaults. | | Public class | DelegateClassMapConvention | A class map convention that wraps a delegate. | | Public class | DelegateMemberMapConvention | A member map convention that wraps a delegate. | | Public class | DelegatePostProcessingConvention | A post processing convention that wraps a delegate. | | Public class | EnumRepresentationConvention | A convention that allows you to set the Enum serialization representation | | Public class | HierarchicalDiscriminatorConvention | Represents a discriminator convention where the discriminator is an array of all the discriminators provided by the class maps of the root class down to the actual type. | | Public class | IgnoreExtraElementsConvention | A convention that sets whether to ignore extra elements encountered during deserialization. | | Public class | IgnoreIfDefaultConvention | A convention that sets whether to ignore default values during serialization. | | Public class | IgnoreIfNullConvention | A convention that sets whether to ignore nulls during serialization. | | Public class | ImmutableTypeClassMapConvention | Maps a fully immutable type. This will include anonymous types. | | Public class | LookupIdGeneratorConvention | A convention that looks up an id generator for the id member. | | Public class | MemberDefaultValueConvention | A convention that sets the default value for members of a given type. | | Public class | MemberNameElementNameConvention | A convention that sets the element name the same as the member name. | | Public class | NamedExtraElementsMemberConvention | A convention that finds the extra elements member by name (and that is also of type BsonDocument or IDictionaryTKey, TValue). | | Public class | NamedIdMemberConvention | A convention that finds the id member by name. | | Public class | NamedParameterCreatorMapConvention | A convention that uses the names of the creator parameters to find the matching members. | | Public class | NoIdMemberConvention | A convention that sets a class's IdMember to null. | | Public class | ObjectDiscriminatorConvention | Represents the object discriminator convention. | | Public class | ReadWriteMemberFinderConvention | A convention that finds readable and writeable members and adds them to the class map. | | Public class | ResetClassMapConvention | A convention that resets a class map (resetting any changes that earlier conventions may have applied). | | Public class | ResetMemberMapsConvention | A convention that resets class members (resetting any changes that earlier conventions may have applied). | | Public class | ScalarDiscriminatorConvention | Represents a discriminator convention where the discriminator is provided by the class map of the actual type. | | Public class | StandardDiscriminatorConvention | Represents the standard discriminator conventions (see ScalarDiscriminatorConvention and HierarchicalDiscriminatorConvention). | | Public class | StringIdStoredAsObjectIdConvention | A convention that sets the representation of a string id class member to ObjectId in BSON with a StringObjectIdGenerator. This convention is only responsible for setting the serializer and idGenerator. It is assumed that this convention runs after other conventions that identify which member is the _id and that the _id has already been added to the class map. | | Public class | StringObjectIdIdGeneratorConvention | A convention that sets the id generator for a string member with a BSON representation of ObjectId. |