C# Class MongoDBIntIdGenerator.IntIdGeneratorBase

Base class for id generator based on integer values.
Inheritance: IIdGenerator
Afficher le fichier Open project: alexjamesbrown/MongDBIntIdGenerator

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.

Méthodes protégées

Méthode Description
ConvertToInt ( BsonValue value ) : object

Converts to int.

CreateUpdateBuilder ( ) : MongoDB.Driver.Builders.UpdateBuilder

Creates the update builder.

IntIdGeneratorBase ( ) : System

Initializes a new instance of the MongoDBIntIdGenerator.IntIdGeneratorBase class.

IntIdGeneratorBase ( string idCollectionName ) : System

Initializes a new instance of the MongoDBIntIdGenerator.IntIdGeneratorBase class.

Method Details

ConvertToInt() protected abstract méthode

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

CreateUpdateBuilder() protected abstract méthode

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

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

IntIdGeneratorBase() protected méthode

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

IntIdGeneratorBase() protected méthode

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

IsEmpty() public abstract méthode

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