Class AscendingGuidGenerator
- Namespace
- MongoDB.Bson.Serialization.Id
Generators
- Assembly
- MongoDB.Bson.dll
A GUID generator that generates GUIDs in ascending order. To enable
an index to make use of the ascending nature make sure to use
Guid
- Inheritance
-
Ascending
Guid Generator
- Implements
- Inherited Members
- Extension Methods
Properties
- Instance
Gets an instance of AscendingGuidGenerator.
Methods
- Generate
Id(long, byte[], int) Generates a Guid for a document. Note - this is purely used for unit testing
- Generate
Id(object, object) Generates an ascending Guid for a document. Consecutive invocations should generate Guids that are ascending from a MongoDB perspective
- Is
Empty(object) Tests whether an id is empty.