C# Class MongoDBIntIdGenerator.Int32IdGenerator

Int32 identifier generator.
Inheritance: IntIdGeneratorBase
Afficher le fichier Open project: alexjamesbrown/MongDBIntIdGenerator

Méthodes publiques

Méthode Description
Int32IdGenerator ( ) : System

Initializes a new instance of the MongoDBIntIdGenerator.Int32IdGenerator class.

Int32IdGenerator ( string idCollectionName ) : System

Initializes a new instance of the MongoDBIntIdGenerator.Int32IdGenerator class.

IsEmpty ( object id ) : bool

Tests whether an Id is empty.

Méthodes protégées

Méthode Description
ConvertToInt ( BsonValue value ) : object

Converts to int.

CreateUpdateBuilder ( ) : MongoDB.Driver.Builders.UpdateBuilder

Creates the update builder.

Method Details

ConvertToInt() protected méthode

Converts to int.
protected ConvertToInt ( BsonValue value ) : object
value BsonValue Value.
Résultat object

CreateUpdateBuilder() protected méthode

Creates the update builder.
protected CreateUpdateBuilder ( ) : MongoDB.Driver.Builders.UpdateBuilder
Résultat MongoDB.Driver.Builders.UpdateBuilder

Int32IdGenerator() public méthode

Initializes a new instance of the MongoDBIntIdGenerator.Int32IdGenerator class.
public Int32IdGenerator ( ) : System
Résultat System

Int32IdGenerator() public méthode

Initializes a new instance of the MongoDBIntIdGenerator.Int32IdGenerator class.
public Int32IdGenerator ( string idCollectionName ) : System
idCollectionName string Identifier collection name.
Résultat System

IsEmpty() public méthode

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