C# Class MongoDBIntIdGenerator.Int32IdGenerator

Int32 identifier generator.
Inheritance: IntIdGeneratorBase
ファイルを表示 Open project: alexjamesbrown/MongDBIntIdGenerator

Public Methods

Method 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.

Protected Methods

Method Description
ConvertToInt ( BsonValue value ) : object

Converts to int.

CreateUpdateBuilder ( ) : MongoDB.Driver.Builders.UpdateBuilder

Creates the update builder.

Method Details

ConvertToInt() protected method

Converts to int.
protected ConvertToInt ( BsonValue value ) : object
value BsonValue Value.
return object

CreateUpdateBuilder() protected method

Creates the update builder.
protected CreateUpdateBuilder ( ) : MongoDB.Driver.Builders.UpdateBuilder
return MongoDB.Driver.Builders.UpdateBuilder

Int32IdGenerator() public method

Initializes a new instance of the MongoDBIntIdGenerator.Int32IdGenerator class.
public Int32IdGenerator ( ) : System
return System

Int32IdGenerator() public method

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

IsEmpty() public method

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