Class BsonObjectIdGenerator
- Namespace
- MongoDB.Bson.Serialization.IdGenerators
- Assembly
- MongoDB.Bson.dll
Represents an Id generator for BsonObjectIds.
public class BsonObjectIdGenerator : IIdGenerator
- Inheritance
-
BsonObjectIdGenerator
- Implements
- Inherited Members
- Extension Methods
Constructors
- BsonObjectIdGenerator()
Initializes a new instance of the BsonObjectIdGenerator class.
Properties
- Instance
Gets an instance of ObjectIdGenerator.
Methods
- GenerateId(object, object)
Generates an Id for a document.
- IsEmpty(object)
Tests whether an Id is empty.