Method GenerateId
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
MongoDB.Bson.Serialization.IdGenerators
Assembly
MongoDB.Bson.dll
GenerateId(object, object)
Generates an Id for a document.
public object GenerateId(object container, object document)
Parameters
container
object
The container of the document (will be a MongoCollection when called from the C# driver).
document
object
The document.
Returns
An Id.