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

The various id generators used in the serialization/deserialization of BSON data are represented in this namespace.

Classes

| | Class | Description | | | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Public class | AscendingGuidGenerator | A GUID generator that generates GUIDs in ascending order. To enable an index to make use of the ascending nature make sure to useGuidRepresentation.Standard as the storage representation. Internally the GUID is of the form 8 bytes: Ticks from DateTime.UtcNow.Ticks 3 bytes: hash of machine name 2 bytes: low order bytes of process Id 3 bytes: increment | | Public class | BsonBinaryDataGuidGenerator | Represents an Id generator for Guids stored in BsonBinaryData values. | | Public class | BsonObjectIdGenerator | Represents an Id generator for BsonObjectIds. | | Public class | CombGuidGenerator | Represents an Id generator for Guids using the COMB algorithm. | | Public class | GuidGenerator | Represents an Id generator for Guids. | | Public class | NullIdChecker | Represents an Id generator that only checks that the Id is not null. | | Public class | ObjectIdGenerator | Represents an Id generator for ObjectIds. | | Public class | StringObjectIdGenerator | Represents an Id generator for ObjectIds represented internally as strings. | | Public class | ZeroIdCheckerT | Represents an Id generator that only checks that the Id is not all zeros. |