public void Delete(Document selector) { DeleteMessage dm = new DeleteMessage(); dm.FullCollectionName = this.FullName; dm.Selector = BsonConvert.From(selector); try{ this.connection.SendMessage(dm); }catch(IOException ioe){ throw new MongoCommException("Could not delete document, communication failure", this.connection,ioe); } }
public void Delete(Document selector) { DeleteMessage dm = new DeleteMessage(); dm.FullCollectionName = this.FullName; dm.Selector = BsonConvert.From(selector); this.connection.SendMessage(dm); }