From b826e3716742abba49ab2a851b943ea8328db66e Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期二, 24 十二月 2024 11:19:45 +0800 Subject: [PATCH] 水池匹配修改 --- BLL/HStation.BLL.Assets.Core/04-bll/06-Elbow/03-AssetsElbowCoefficient/AssetsElbowMain_Instance.cs | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/BLL/HStation.BLL.Assets.Core/04-bll/06-Elbow/03-AssetsElbowCoefficient/AssetsElbowMain_Instance.cs b/BLL/HStation.BLL.Assets.Core/04-bll/06-Elbow/03-AssetsElbowCoefficient/AssetsElbowMain_Instance.cs index 3d88a1c..66001f5 100644 --- a/BLL/HStation.BLL.Assets.Core/04-bll/06-Elbow/03-AssetsElbowCoefficient/AssetsElbowMain_Instance.cs +++ b/BLL/HStation.BLL.Assets.Core/04-bll/06-Elbow/03-AssetsElbowCoefficient/AssetsElbowMain_Instance.cs @@ -6,80 +6,80 @@ public partial class AssetsElbowCoefficient { //dto to vmo - internal static HStation.Vmo.AssetsElbowCoefficientVmo Dto2Vmo(AssetsElbowCoefficientDto dto) + internal static HStation.Vmo.AssetsElbowCoefficientVmo Dto2Vmo(AssetsElbowFactorDto dto) { if (dto == null) { return default; } - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Dto.Assets.AssetsElbowCoefficientDto, HStation.Vmo.AssetsElbowCoefficientVmo>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Dto.Assets.AssetsElbowFactorDto, HStation.Vmo.AssetsElbowCoefficientVmo>() ).CreateMapper(); - var vmo = mapper.Map<AssetsElbowCoefficientDto, HStation.Vmo.AssetsElbowCoefficientVmo>(dto); + var vmo = mapper.Map<AssetsElbowFactorDto, HStation.Vmo.AssetsElbowCoefficientVmo>(dto); return vmo; } //dto to vmos - internal static List<HStation.Vmo.AssetsElbowCoefficientVmo> Dto2Vmos(List<AssetsElbowCoefficientDto> dtos) + internal static List<HStation.Vmo.AssetsElbowCoefficientVmo> Dto2Vmos(List<AssetsElbowFactorDto> dtos) { if (dtos == null || dtos.Count < 1) { return default; } - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<AssetsElbowCoefficientDto, HStation.Vmo.AssetsElbowCoefficientVmo>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<AssetsElbowFactorDto, HStation.Vmo.AssetsElbowCoefficientVmo>() ).CreateMapper(); - var vmos = mapper.Map<List<AssetsElbowCoefficientDto>, List<HStation.Vmo.AssetsElbowCoefficientVmo>>(dtos); + var vmos = mapper.Map<List<AssetsElbowFactorDto>, List<HStation.Vmo.AssetsElbowCoefficientVmo>>(dtos); return vmos; } //vmo to add dto - internal static HStation.Dto.Assets.AddAssetsElbowCoefficientInput Vmo2AddDto(HStation.Vmo.AssetsElbowCoefficientVmo vmo) + internal static HStation.Dto.Assets.AddAssetsElbowFactorInput Vmo2AddDto(HStation.Vmo.AssetsElbowCoefficientVmo vmo) { if (vmo == null) { return default; } - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.AddAssetsElbowCoefficientInput>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.AddAssetsElbowFactorInput>() ).CreateMapper(); - var dto = mapper.Map<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.AddAssetsElbowCoefficientInput>(vmo); + var dto = mapper.Map<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.AddAssetsElbowFactorInput>(vmo); return dto; } //vmo to add dtos - internal static List<HStation.Dto.Assets.AddAssetsElbowCoefficientInput> Vmo2AddDtos(List<HStation.Vmo.AssetsElbowCoefficientVmo> vmoList) + internal static List<HStation.Dto.Assets.AddAssetsElbowFactorInput> Vmo2AddDtos(List<HStation.Vmo.AssetsElbowCoefficientVmo> vmoList) { if (vmoList == null || vmoList.Count < 1) { return default; } - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.AddAssetsElbowCoefficientInput>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.AddAssetsElbowFactorInput>() ).CreateMapper(); - var dtoList = mapper.Map<List<HStation.Vmo.AssetsElbowCoefficientVmo>, List<HStation.Dto.Assets.AddAssetsElbowCoefficientInput>>(vmoList); + var dtoList = mapper.Map<List<HStation.Vmo.AssetsElbowCoefficientVmo>, List<HStation.Dto.Assets.AddAssetsElbowFactorInput>>(vmoList); return dtoList; } //vmo to update dto - internal static HStation.Dto.Assets.UpdateAssetsElbowCoefficientInput Vmo2UpdateDto(HStation.Vmo.AssetsElbowCoefficientVmo vmo) + internal static HStation.Dto.Assets.UpdateAssetsElbowFactorInput Vmo2UpdateDto(HStation.Vmo.AssetsElbowCoefficientVmo vmo) { if (vmo == null) { return default; } - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.UpdateAssetsElbowCoefficientInput>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.UpdateAssetsElbowFactorInput>() ).CreateMapper(); - var dto = mapper.Map<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.UpdateAssetsElbowCoefficientInput>(vmo); + var dto = mapper.Map<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.UpdateAssetsElbowFactorInput>(vmo); return dto; } //vmo to update dtos - internal static List<HStation.Dto.Assets.UpdateAssetsElbowCoefficientInput> Vmo2UpdateDtos(List<HStation.Vmo.AssetsElbowCoefficientVmo> vmoList) + internal static List<HStation.Dto.Assets.UpdateAssetsElbowFactorInput> Vmo2UpdateDtos(List<HStation.Vmo.AssetsElbowCoefficientVmo> vmoList) { if (vmoList == null || vmoList.Count < 1) { return default; } - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.UpdateAssetsElbowCoefficientInput>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Vmo.AssetsElbowCoefficientVmo, HStation.Dto.Assets.UpdateAssetsElbowFactorInput>() ).CreateMapper(); - var dtoList = mapper.Map<List<HStation.Vmo.AssetsElbowCoefficientVmo>, List<HStation.Dto.Assets.UpdateAssetsElbowCoefficientInput>>(vmoList); + var dtoList = mapper.Map<List<HStation.Vmo.AssetsElbowCoefficientVmo>, List<HStation.Dto.Assets.UpdateAssetsElbowFactorInput>>(vmoList); return dtoList; } } -- Gitblit v1.9.3