Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
MongoDB
Bson
Serialization
IdGenerators
GuidGenerator
GenerateId
MongoDB.Bson.Serialization.IdGenerators.GuidGenerator.GenerateId C# (CSharp) Метод
Документация по классу GuidGenerator
Показать файл
Открыть проект
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
public object GenerateId(object container, object document) { return Guid.NewGuid(); }
GuidGenerator
GenerateId
GuidGenerator
IsEmpty