C# 클래스 MongoDBIntIdGenerator.IntIdGeneratorBase

Base class for id generator based on integer values.
상속: IIdGenerator
파일 보기 프로젝트 열기: alexjamesbrown/MongDBIntIdGenerator

공개 메소드들

메소드 설명
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