public static void DeleteRevision(this IDatabaseCommands databaseCommands, string id, int revision, Guid?etag)
        {
            Contract.Requires <ArgumentNullException>(!string.IsNullOrEmpty(id));
            Guard.Against(databaseCommands == null, () => new InvalidOperationException("session is null"));
            string revisionDocId = RevisionDocIdGenerator.GetId(id, revision);

            databaseCommands.Delete(revisionDocId, etag);
        }
示例#2
0
 public Task DeleteDocumentAsync(string id)
 {
     databaseCommands.Delete(id, null);
     return(new CompletedTask());
 }