예제 #1
0
 public void WriteDocument(DocumentItem item, SmugglerProgressBase.CountsWithLastEtag progress)
 {
     if (item.Attachments != null)
     {
         progress.Attachments.ReadCount += item.Attachments.Count;
     }
     _command.Add(item);
     HandleBatchOfDocumentsIfNecessary();
 }
예제 #2
0
            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();
            }