Click or drag to resize

MongoDB.Bson.Serialization.Conventions Namespace

The various conventions used during serialization/deserialization of BSON data are represented by the types in the MongoDB.Bson.Serialization.Conventions namespace.
Classes
  ClassDescription
Public classAttributeConventionPack
Convention pack for applying attributes.
Public classCamelCaseElementNameConvention
A convention that sets the element name the same as the member name with the first character lower cased.
Public classConventionBase
Base class for a convention.
Public classConventionPack
A mutable pack of conventions.
Public classConventionRegistry
Represents a registry of conventions.
Public classConventionRunner
Runs the conventions against a BsonClassMap and its BsonMemberMaps.
Public classDefaultConventionPack
Convention pack of defaults.
Public classDelegateClassMapConvention
A class map convention that wraps a delegate.
Public classDelegateMemberMapConvention
A member map convention that wraps a delegate.
Public classDelegatePostProcessingConvention
A post processing convention that wraps a delegate.
Public classEnumRepresentationConvention
A convention that allows you to set the Enum serialization representation
Public classHierarchicalDiscriminatorConvention
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 classIgnoreExtraElementsConvention
A convention that sets whether to ignore extra elements encountered during deserialization.
Public classIgnoreIfDefaultConvention
A convention that sets whether to ignore default values during serialization.
Public classIgnoreIfNullConvention
A convention that sets whether to ignore nulls during serialization.
Public classImmutableTypeClassMapConvention
Maps a fully immutable type. This will include anonymous types.
Public classLookupIdGeneratorConvention
A convention that looks up an id generator for the id member.
Public classMemberDefaultValueConvention
A convention that sets the default value for members of a given type.
Public classMemberNameElementNameConvention
A convention that sets the element name the same as the member name.
Public classNamedExtraElementsMemberConvention
Public classNamedIdMemberConvention
A convention that finds the id member by name.
Public classNamedParameterCreatorMapConvention
A convention that uses the names of the creator parameters to find the matching members.
Public classNoIdMemberConvention
A convention that sets a class's IdMember to null.
Public classObjectDiscriminatorConvention
Represents the object discriminator convention.
Public classReadWriteMemberFinderConvention
A convention that finds readable and writeable members and adds them to the class map.
Public classResetClassMapConvention
A convention that resets a class map (resetting any changes that earlier conventions may have applied).
Public classResetMemberMapsConvention
A convention that resets class members (resetting any changes that earlier conventions may have applied).
Public classScalarDiscriminatorConvention
Represents a discriminator convention where the discriminator is provided by the class map of the actual type.
Public classStandardDiscriminatorConvention
Represents the standard discriminator conventions (see ScalarDiscriminatorConvention and HierarchicalDiscriminatorConvention).
Public classStringIdStoredAsObjectIdConvention
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 classStringObjectIdIdGeneratorConvention
A convention that sets the id generator for a string member with a BSON representation of ObjectId.
Interfaces
  InterfaceDescription
Public interfaceIClassMapConvention
Represents a convention that applies to a BsonClassMap.
Public interfaceIConvention
Represents a convention.
Public interfaceIConventionPack
Represents a grouping of conventions.
Public interfaceICreatorMapConvention
Represents a convention that applies to a BsonCreatorMap.
Public interfaceIDiscriminatorConvention
Represents a discriminator convention.
Public interfaceIMemberMapConvention
Represents a convention that applies to a BsonMemberMap.
Public interfaceIPostProcessingConvention
Represents a post processing convention that applies to a BsonClassMap.