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