C# Class MongoDB.Bson.Serialization.IdGenerators.StringObjectIdGenerator

Represents an Id generator for ObjectIds represented internally as strings.
Inheritance: IIdGenerator
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver

Méthodes publiques

Méthode Description
GenerateId ( object container, object document ) : object

Generates an Id for a document.

IsEmpty ( object id ) : bool

Tests whether an Id is empty.

StringObjectIdGenerator ( )

Initializes a new instance of the StringObjectIdGenerator class.

Method Details

GenerateId() public méthode

Generates an Id for a document.
public GenerateId ( object container, object document ) : object
container object The container of the document (will be a MongoCollection when called from the C# driver).
document object The document.
Résultat object

IsEmpty() public méthode

Tests whether an Id is empty.
public IsEmpty ( object id ) : bool
id object The Id.
Résultat bool

StringObjectIdGenerator() public méthode

Initializes a new instance of the StringObjectIdGenerator class.