MongoDB.Bson.Serialization.IdGenerators.StringObjectIdGenerator.GenerateId C# (CSharp) Метод

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 ObjectId.GenerateNewId().ToString();
        }