Skip to content

Commit bcf32be

Browse files
Add deleted flag
1 parent fc71c6d commit bcf32be

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* **Bulk Delete**: Adds support to replication ([#171](https://github.com/matteobortolazzo/couchdb-net/issues/171))
66
* **Revision Support**: Support for revisions in add and update ([#170](https://github.com/matteobortolazzo/couchdb-net/pull/170))
7+
* **Deleted Flag**: Added deleted flag on document ([#154](https://github.com/matteobortolazzo/couchdb-net/pull/154))
78

89
## Bug Fixes
910

Diff for: LATEST_CHANGE.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* **Bulk Delete**: Adds support to replication ([#171](https://github.com/matteobortolazzo/couchdb-net/issues/171))
44
* **Revision Support**: Support for revisions in add and update ([#170](https://github.com/matteobortolazzo/couchdb-net/pull/170))
5+
* **Deleted Flag**: Added deleted flag on document ([#154](https://github.com/matteobortolazzo/couchdb-net/pull/154))
56

67
## Bug Fixes
78

Diff for: src/CouchDB.Driver/Types/CouchDocument.cs

+9
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ protected CouchDocument()
3838
[JsonProperty("rev", NullValueHandling = NullValueHandling.Ignore)]
3939
private string RevOther { set => Rev = value; }
4040

41+
[JsonIgnore]
42+
public bool Deleted { get; private set; }
43+
[DataMember]
44+
[JsonProperty("_deleted", NullValueHandling = NullValueHandling.Ignore)]
45+
private bool DeletedOther
46+
{
47+
set => Deleted = value;
48+
}
49+
4150
[DataMember]
4251
[JsonProperty("_conflicts")]
4352
private readonly List<string> _conflicts;

0 commit comments

Comments
 (0)