Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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

## Bug Fixes

Expand Down
1 change: 1 addition & 0 deletions LATEST_CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

## Bug Fixes

Expand Down
10 changes: 10 additions & 0 deletions src/CouchDB.Driver/Types/CouchDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ protected CouchDocument()
[JsonProperty("rev", NullValueHandling = NullValueHandling.Ignore)]
private string RevOther { set => Rev = value; }

[DataMember]
[JsonIgnore]
public bool Deleted { get; private set; }
[DataMember]
[JsonProperty("_deleted", NullValueHandling = NullValueHandling.Ignore)]
private bool DeletedOther
{
set => Deleted = value;
}

[DataMember]
[JsonProperty("_conflicts")]
private readonly List<string> _conflicts;
Expand Down