lixiaojun
2024-12-10 513c72dd3c97787b0845bcc8526e004da9e50e64
BLL/HStation.BLL.Assets.Core/04-bll/11-Exchanger/05-AssetsExchangerMainAndPartMap/AssetsExchangerMainAndPartMapping.cs
@@ -19,9 +19,9 @@
        public async Task<List<Vmo.AssetsExchangerMainAndPartMapVmo>> GetAll()
        {
            var DtoList = await _cal.GetAll();
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMapDto, Vmo.AssetsExchangerMainAndPartMapVmo>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>()
 ).CreateMapper();
            var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMapDto>, List<Vmo.AssetsExchangerMainAndPartMapVmo>>(DtoList);
            var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMappingDto>, List<Vmo.AssetsExchangerMainAndPartMapVmo>>(DtoList);
            return vmoList;
        }
@@ -31,9 +31,9 @@
        public async Task<Vmo.AssetsExchangerMainAndPartMapVmo> GetByID(long ID)
        {
            var Dto = await _cal.GetByID(ID);
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMapDto, Vmo.AssetsExchangerMainAndPartMapVmo>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>()
 ).CreateMapper();
            var vmo = mapper.Map<Dto.Assets.AssetsExchangerMainAndPartMapDto, Vmo.AssetsExchangerMainAndPartMapVmo>(Dto);
            var vmo = mapper.Map<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>(Dto);
            return vmo;
        }
@@ -44,9 +44,9 @@
        public async Task<List<Vmo.AssetsExchangerMainAndPartMapVmo>> GetByIds(List<long> Ids)
        {
            var DtoList = await _cal.GetByIds(Ids);
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMapDto, Vmo.AssetsExchangerMainAndPartMapVmo>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>()
 ).CreateMapper();
            var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMapDto>, List<Vmo.AssetsExchangerMainAndPartMapVmo>>(DtoList);
            var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMappingDto>, List<Vmo.AssetsExchangerMainAndPartMapVmo>>(DtoList);
            return vmoList;
        }
@@ -60,9 +60,9 @@
        /// </summary>
        public async Task<long> Insert(Vmo.AssetsExchangerMainAndPartMapVmo model)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMapInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>()
 ).CreateMapper();
            var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMapInput>(model);
            var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>(model);
            return await _cal.Insert(vmo);
        }
@@ -72,9 +72,9 @@
        /// </summary>
        public async Task<bool> Inserts(List<Vmo.AssetsExchangerMainAndPartMapVmo> list)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMapInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>()
 ).CreateMapper();
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<AddAssetsExchangerMainAndPartMapInput>>(list);
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<AddAssetsExchangerMainAndPartMappingInput>>(list);
            return await _cal.Inserts(vmoList);
        }
@@ -84,9 +84,9 @@
        /// </summary>
        public async Task<bool> BulkInserts(List<Vmo.AssetsExchangerMainAndPartMapVmo> list)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMapInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>()
).CreateMapper();
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<AddAssetsExchangerMainAndPartMapInput>>(list);
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<AddAssetsExchangerMainAndPartMappingInput>>(list);
            return await _cal.BulkInserts(vmoList);
        }
@@ -99,9 +99,9 @@
        /// </summary>
        public async Task<bool> Update(Vmo.AssetsExchangerMainAndPartMapVmo model)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMapInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>()
).CreateMapper();
            var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMapInput>(model);
            var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>(model);
            return await _cal.Update(vmo);
        }
@@ -110,9 +110,9 @@
        /// </summary>
        public async Task<bool> Updates(List<Vmo.AssetsExchangerMainAndPartMapVmo> list)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMapInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>()
).CreateMapper();
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<UpdateAssetsExchangerMainAndPartMapInput>>(list);
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<UpdateAssetsExchangerMainAndPartMappingInput>>(list);
            return await _cal.Updates(vmoList);
        }
@@ -122,9 +122,9 @@
        /// </summary>
        public async Task<bool> BulkUpdates(List<Vmo.AssetsExchangerMainAndPartMapVmo> list)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMapInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>()
).CreateMapper();
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<UpdateAssetsExchangerMainAndPartMapInput>>(list);
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<UpdateAssetsExchangerMainAndPartMappingInput>>(list);
            return await _cal.BulkUpdates(vmoList);
        }