public virtual async Task AddManyAsync(AddManyModuleInput input) { foreach (var grouping in input.InstallationInfos.GroupBy(x => x.ModuleGroupId)) { var custom = grouping .Select(x => x.Targets.Select(tar => x.Submodule.IsNullOrWhiteSpace() ? $"{x.ModuleId}:{tar}" : $"{x.ModuleId}:{tar}:{x.Submodule}").JoinAsString(",")) .JoinAsString(","); await _addCommand.RunCommand(new AddCommandOption { Directory = input.DirectoryPath, ModuleName = grouping.Key, Version = input.SpecifiedVersion, Custom = custom }); } }
public virtual async Task <ServiceExecutionResult> AddAsync(AbpHelperGenerateMigrationAddInput input) { await _addCommand.RunCommand(ObjectMapper.Map <AbpHelperGenerateMigrationAddInput, AddCommandOption>(input)); return(new ServiceExecutionResult(true)); }