C# Class MongoDB.Bson.Serialization.IdGenerators.NullIdChecker

Represents an Id generator that only checks that the Id is not null.
Inheritance: IIdGenerator
显示文件 Open project: CloudMetal/mongo-csharp-driver

Public Methods

Method Description
GenerateId ( object container, object document ) : object

Generates an Id for a document.

IsEmpty ( object id ) : bool

Tests whether an Id is empty.

NullIdChecker ( ) : System

Initializes a new instance of the NullIdChecker class.

Method Details

GenerateId() public method

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.
return object

IsEmpty() public method

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

NullIdChecker() public method

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