/// <summary> /// Creates an Oid for this document - MongoDB will /// automatically create an Oid when needed /// </summary> public MongoOid GenerateId() { this.Id = new MongoOid(); return this.Id; }