Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 38 lines (34 sloc) 1.038 kB
acfb937 @ftgp initial commit
ftgp authored
1 using System;
2 using System.Collections.Generic;
3 using Newtonsoft.Json;
4 using Newtonsoft.Json.Linq;
5
6 namespace Divan
7 {
8 /// <summary>
9 /// Only used as pseudo doc when doing bulk updates/inserts.
10 /// </summary>
11 public class CouchBulkDeleteDocuments : CouchBulkDocuments
12 {
d4e06f3 Switched everywhere from IList to IEnumerable (since there is no bene…
Sebastian Negomireanu authored
13 public CouchBulkDeleteDocuments(IEnumerable<ICouchDocument> docs) : base(docs)
acfb937 @ftgp initial commit
ftgp authored
14 {
15 }
16
17 public override void WriteJson(JsonWriter writer)
18 {
19 writer.WritePropertyName("docs");
20 writer.WriteStartArray();
21 foreach (ICouchDocument doc in Docs)
22 {
23 writer.WriteStartObject();
24 CouchDocument.WriteIdAndRev(doc, writer);
25 writer.WritePropertyName("_deleted");
26 writer.WriteValue(true);
27 writer.WriteEndObject();
28 }
29 writer.WriteEndArray();
30 }
31
32 public override void ReadJson(JObject obj)
33 {
34 throw new NotImplementedException();
35 }
36 }
ca80faf @gokr Lucene integration, refactorings and more.
gokr authored
37 }
Something went wrong with that request. Please try again.