public void WriteDocument(DocumentItem item, SmugglerProgressBase.CountsWithLastEtag progress) { if (item.Attachments != null) { progress.Attachments.ReadCount += item.Attachments.Count; } _command.Add(item); HandleBatchOfDocumentsIfNecessary(); }
public void WriteDocument(DocumentItem item, SmugglerProgressBase.CountsWithLastEtag progress) { if (item.Attachments != null) { if (_options.OperateOnTypes.HasFlag(DatabaseItemType.Attachments)) { progress.Attachments.ReadCount += item.Attachments.Count; } else { progress.Attachments.Skipped = true; } } _command.Add(item); HandleBatchOfDocumentsIfNecessary(); }