CSMongo.MongoDocument.GenerateId C# (CSharp) Méthode

GenerateId() public méthode

Creates an Oid for this document - MongoDB will automatically create an Oid when needed
public GenerateId ( ) : MongoOid
Résultat MongoOid
        public MongoOid GenerateId()
        {
            this.Id = new MongoOid();
            return this.Id;
        }