/// <summary> /// Saves the <see cref="Couchbase.Lite.UnsavedRevision"/>, optionally allowing /// the save when there is a conflict. /// </summary> /// <param name="allowConflict"> /// Whether or not to allow saving when there is a conflict. /// </param> /// <exception cref="Couchbase.Lite.CouchbaseLiteException"> /// Thrown if an issue occurs while saving the <see cref="Couchbase.Lite.UnsavedRevision"/>. /// </exception> public SavedRevision Save(bool allowConflict) { return(Document.PutProperties(Properties, ParentId.AsRevID(), allowConflict)); }
/// <summary> /// Saves the <see cref="Couchbase.Lite.UnsavedRevision"/>. /// This will fail if its parent is not the current <see cref="Couchbase.Lite.Revision"/> /// of the associated <see cref="Couchbase.Lite.Document"/>. /// </summary> /// <exception cref="Couchbase.Lite.CouchbaseLiteException"> /// Thrown if an issue occurs while saving the <see cref="Couchbase.Lite.UnsavedRevision"/>. /// </exception> public SavedRevision Save() { return(Document.PutProperties(Properties, ParentId.AsRevID(), false)); }