Esempio n. 1
0
 protected override void WriteBody (ISonWriter writer){
     writer.WriteValue(BsonDataType.Integer,0);
     writer.WriteString(this.FullCollectionName);
     writer.WriteValue(BsonDataType.Integer,this.Flags);
     writer.Write(Selector);
     writer.Write(Document);
 }
Esempio n. 2
0
        protected override void WriteBody (ISonWriter writer){
            writer.WriteValue(BsonDataType.Integer,0);
            writer.WriteValue(BsonDataType.Integer, this.CursorIDs.Length);            

            foreach(long id in this.CursorIDs){
                writer.WriteValue(BsonDataType.Long, id);
            }
        }
Esempio n. 3
0
 protected override void WriteBody (ISonWriter writer){
     writer.WriteValue(BsonDataType.Integer,(int)this.Options);
     writer.WriteString(this.FullCollectionName);
     writer.WriteValue(BsonDataType.Integer,(int)this.NumberToSkip);
     writer.WriteValue(BsonDataType.Integer,(int)this.NumberToReturn);
     writer.Write(this.Query);
     if(this.ReturnFieldSelector != null){
         writer.Write(this.ReturnFieldSelector);
     }
 }
Esempio n. 4
0
 protected override void WriteBody (ISonWriter writer){
     writer.WriteValue(BsonDataType.Integer,0);
     writer.WriteString(this.FullCollectionName);
     writer.WriteValue(BsonDataType.Integer,this.NumberToReturn);
     writer.WriteValue(BsonDataType.Long,this.CursorID);
 }