C# Class MongoDBIntIdGenerator.Int64IdGenerator

Int64 identifier generator.
Inheritance: IntIdGeneratorBase
显示文件 Open project: alexjamesbrown/MongDBIntIdGenerator

Public Methods

Method Description
Int64IdGenerator ( ) : System

Initializes a new instance of the MongoDBIntIdGenerator.Int64IdGenerator class.

Int64IdGenerator ( string idCollectionName ) : System

Initializes a new instance of the MongoDBIntIdGenerator.Int64IdGenerator 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

Int64IdGenerator() public method

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

Int64IdGenerator() public method

Initializes a new instance of the MongoDBIntIdGenerator.Int64IdGenerator class.
public Int64IdGenerator ( 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