Exemplo n.º 1
0
        private WorkplanTaskAssignedUserMapping CopyAssignedUserMapping(WorkplanTaskAssignedUserMapping _wUserMapping, Dictionary <long, long> oldToNewId)
        {
            var newWorkplanTaskAssignedUserMapping = new WorkplanTaskAssignedUserMapping();

            newWorkplanTaskAssignedUserMapping.WorkplanTaskId = oldToNewId[_wUserMapping.WorkplanTaskId];
            newWorkplanTaskAssignedUserMapping.UserId         = (long)_wUserMapping.UserId;
            return(newWorkplanTaskAssignedUserMapping);
        }
Exemplo n.º 2
0
        /**
         * This function is called only if AssignedUserMapping's UserId has value
         */
        public async Task CopyAssignedUserMapping(ProjectplanTaskAssignedUserMapping _pUserMapping, Dictionary <long, long> oldToNewId)
        {
            var newWorkplanTaskAssignedUserMapping = new WorkplanTaskAssignedUserMapping();

            newWorkplanTaskAssignedUserMapping.WorkplanTaskId = oldToNewId[_pUserMapping.ProjectplanTaskId];
            newWorkplanTaskAssignedUserMapping.UserId         = (long)_pUserMapping.UserId;

            await _workplanTaskAssignedUserMappingRepository.InsertAsync(newWorkplanTaskAssignedUserMapping);
        }
Exemplo n.º 3
0
        private async Task <WorkplanTaskAssignedUserMapping> CopyAssignedUserMapping(WorkplanTaskAssignedUserMapping _wUserMapping, Dictionary <long, long> oldToNewId)
        {
            var newWorkplanTaskAssignedUserMapping = new WorkplanTaskAssignedUserMapping();

            newWorkplanTaskAssignedUserMapping.WorkplanTaskId = oldToNewId[_wUserMapping.WorkplanTaskId];
            newWorkplanTaskAssignedUserMapping.UserId         = (long)_wUserMapping.UserId;
            await _workplanTaskAssignedUserMappingRepository.InsertAsync(newWorkplanTaskAssignedUserMapping);

            return(newWorkplanTaskAssignedUserMapping);
        }