Namespace MongoDB.Bson.Serialization.Conventions
| MongoDB CSharp Driver API Reference (original) (raw)
The various conventions used during serialization/deserialization of BSON data are represented by the types in the MongoDB.Bson.Serialization.Conventions namespace.
Classes
Convention pack for applying attributes.
CamelCaseElementNameConvention
A convention that sets the element name the same as the member name with the first character lower cased.
Base class for a convention.
A mutable pack of conventions.
Represents a registry of conventions.
Runs the conventions against a BsonClassMap and its BsonMemberMaps.
Convention pack of defaults.
A class map convention that wraps a delegate.
A member map convention that wraps a delegate.
DelegatePostProcessingConvention
A post processing convention that wraps a delegate.
A convention that allows you to set the Enum serialization representation
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.
A convention that sets whether to ignore extra elements encountered during deserialization.
A convention that sets whether to ignore default values during serialization.
A convention that sets whether to ignore nulls during serialization.
ImmutableTypeClassMapConvention
Maps a fully immutable type. This will include anonymous types.
A convention that looks up an id generator for the id member.
A convention that sets the default value for members of a given type.
MemberNameElementNameConvention
A convention that sets the element name the same as the member name.
NamedExtraElementsMemberConvention
A convention that finds the extra elements member by name (and that is also of type BsonDocument or IDictionary<TKey, TValue>).
A convention that finds the id member by name.
NamedParameterCreatorMapConvention
A convention that uses the names of the creator parameters to find the matching members.
A convention that sets a class's IdMember to null.
Represents the object discriminator convention.
ObjectSerializerAllowedTypesConvention
A convention that allows to set the types that can be safely serialized and deserialized with the ObjectSerializer.
ReadWriteMemberFinderConvention
A convention that finds readable and writeable members and adds them to the class map.
A convention that resets a class map (resetting any changes that earlier conventions may have applied).
A convention that resets class members (resetting any changes that earlier conventions may have applied).
Represents a discriminator convention where the discriminator is provided by the class map of the actual type.
StandardDiscriminatorConvention
Represents the standard discriminator conventions (see ScalarDiscriminatorConvention and HierarchicalDiscriminatorConvention).
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.
StringObjectIdIdGeneratorConvention
A convention that sets the id generator for a string member with a BSON representation of ObjectId.
Interfaces
Represents a convention that applies to a BsonClassMap.
Represents a convention.
Represents a grouping of conventions.
Represents a convention that applies to a BsonCreatorMap.
Represents a discriminator convention.
IHierarchicalDiscriminatorConvention
Represents a discriminator convention where the discriminator for each type in a polymorphic hierarchy is an array representing the hierarchy.
Represents a convention that applies to a BsonMemberMap.
Represents a post processing convention that applies to a BsonClassMap.
IScalarDiscriminatorConvention
Represents a discriminator convention where the discriminator for each type in a polymorphic hierarchy is a scalar.