C# Класс MongoDB.Bson.Serialization.IdGenerators.CombGuidGenerator

Represents an Id generator for Guids using the COMB algorithm.
Наследование: IIdGenerator
Показать файл Открыть проект

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

Метод Описание
CombGuidGenerator ( ) : System

Initializes a new instance of the CombGuidGenerator class.

GenerateId ( object container, object document ) : object

Generates an Id for a document.

IsEmpty ( object id ) : bool

Tests whether an Id is empty.

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

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

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

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

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

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