Пример #1
0
        private void Reset()
        {
            _command?.Dispose();
            _command = new BatchHandler.MergedBatchCommand(_context.DocumentDatabase)
            {
                AttachmentStreamsTempFile = _context.DocumentDatabase.DocumentsStorage.AttachmentsStorage.GetTempFile("put")
            };

            _commands.Clear();
            _attachmentStreams.Clear();
        }
Пример #2
0
        private void Reset()
        {
            _rowsRead = SqlReader.RowsRead;
            _time.Restart();

            _command?.Dispose();
            _command = new BatchHandler.MergedBatchCommand
            {
                Database = _context.DocumentDatabase,
                AttachmentStreamsTempFile = _context.DocumentDatabase.DocumentsStorage.AttachmentsStorage.GetTempFile("put")
            };

            _commands.Clear();
            _attachmentStreams.Clear();
        }