Наследование: RequestMessage
Пример #1
0
 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);
     }
 }
Пример #2
0
 public void Delete(Document selector)
 {
     DeleteMessage dm = new DeleteMessage();
     dm.FullCollectionName = this.FullName;
     dm.Selector = BsonConvert.From(selector);
     this.connection.SendMessage(dm);
 }