/// <summary> /// Finds a record based on the Oid value /// </summary> public MongoQuery FindById(MongoOid id) { //use 'in' to find the id - There is an //actual option to use for this which //will be converted to later on return this.In(Mongo.DocumentIdKey, new MongoOid[] { id }); }
/// <summary> /// Returns the bytes required for the MongoOid /// </summary> public static byte[] AsOid(MongoOid value) { return value.Value; }