C# Класс MongoDBIntIdGenerator.IntIdGeneratorBase

Base class for id generator based on integer values.
Наследование: IIdGenerator
Показать файл Открыть проект

Открытые методы

Метод Описание
GenerateId ( object container, object document ) : object

Generates an Id for a document.

IsEmpty ( object id ) : bool

Tests whether an Id is empty.

Защищенные методы

Метод Описание
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.

Описание методов

ConvertToInt() защищенный абстрактный Метод

Converts to int.
protected abstract ConvertToInt ( BsonValue value ) : object
value BsonValue Value.
Результат object

CreateUpdateBuilder() защищенный абстрактный Метод

Creates the update builder.
protected abstract CreateUpdateBuilder ( ) : MongoDB.Driver.Builders.UpdateBuilder
Результат MongoDB.Driver.Builders.UpdateBuilder

GenerateId() публичный Метод

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.
Результат object

IntIdGeneratorBase() защищенный Метод

Initializes a new instance of the MongoDBIntIdGenerator.IntIdGeneratorBase class.
protected IntIdGeneratorBase ( ) : System
Результат System

IntIdGeneratorBase() защищенный Метод

Initializes a new instance of the MongoDBIntIdGenerator.IntIdGeneratorBase class.
protected IntIdGeneratorBase ( string idCollectionName ) : System
idCollectionName string Identifier collection name.
Результат System

IsEmpty() публичный абстрактный Метод

Tests whether an Id is empty.
public abstract IsEmpty ( object id ) : bool
id object The Id.
Результат bool