DbContextScope
using (var scope = new DbContextScope(_db,
autoDetectChanges: false,
deferCommit: true))
{
destinationPath += "/" + node.Value.Name;
var dupeFiles = new List<DuplicateFileInfo>();
// >>>> Do the heavy stuff
var folder = await InternalCopyFolder(scope, node, destinationPath,
dupeEntryHandling, dupeFiles, cancelToken);
var result = new FolderOperationResult
{
Operation = "copy",
DuplicateEntryHandling = dupeEntryHandling,
Folder = folder,
DuplicateFiles = dupeFiles
};
return result;
}Parameter reference
Parameter
Description
Last updated
Was this helpful?