Exemplo n.º 1
0
        /// <summary>
        ///     更新依赖项
        /// </summary>
        /// <param name="dependencyDto">依赖项DTO</param>
        /// <param name="dependency">依赖项</param>
        private void UpdateDependency(DependencyDTO dependencyDto, Dependency dependency)
        {
            //获取
            PnReg pnReg = _pnRegRepository.Get(dependencyDto.DependencyPnId);

            dependency.SetPnReg(pnReg);
        }
Exemplo n.º 2
0
        /// <summary>
        ///     插入依赖项
        /// </summary>
        /// <param name="installController">附件</param>
        /// <param name="dependencyDto">依赖项DTO</param>
        private void InsertDependency(InstallController installController, DependencyDTO dependencyDto)
        {
            //获取
            PnReg pnReg = _pnRegRepository.Get(dependencyDto.DependencyPnId);

            // 添加依赖项
            installController.AddNewDependency(pnReg);
        }