duheng
2024-12-10 26917739c47252ecdc3b8f43eca6ebaf9cba6ac4
BLL/HStation.BLL.Assets.Core/04-bll/11-Exchanger/05-AssetsExchangerMainAndPartMap/AssetsExchangerMainAndPartMapping.cs
@@ -16,24 +16,24 @@
        /// <summary>
        ///
        /// </summary>
        public async Task<List<Vmo.AssetsExchangerMainAndPartMapVmo>> GetAll()
        public async Task<List<Vmo.AssetsExchangerMainAndPartMappingVmo>> GetAll()
        {
            var DtoList = await _cal.GetAll();
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMappingVmo>()
 ).CreateMapper();
            var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMappingDto>, List<Vmo.AssetsExchangerMainAndPartMapVmo>>(DtoList);
            var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMappingDto>, List<Vmo.AssetsExchangerMainAndPartMappingVmo>>(DtoList);
            return vmoList;
        }
        /// <summary>
        ///
        /// </summary>
        public async Task<Vmo.AssetsExchangerMainAndPartMapVmo> GetByID(long ID)
        public async Task<Vmo.AssetsExchangerMainAndPartMappingVmo> GetByID(long ID)
        {
            var Dto = await _cal.GetByID(ID);
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMappingVmo>()
 ).CreateMapper();
            var vmo = mapper.Map<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>(Dto);
            var vmo = mapper.Map<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMappingVmo>(Dto);
            return vmo;
        }
@@ -41,12 +41,12 @@
        /// <summary>
        ///
        /// </summary>
        public async Task<List<Vmo.AssetsExchangerMainAndPartMapVmo>> GetByIds(List<long> Ids)
        public async Task<List<Vmo.AssetsExchangerMainAndPartMappingVmo>> GetByIds(List<long> Ids)
        {
            var DtoList = await _cal.GetByIds(Ids);
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMappingVmo>()
 ).CreateMapper();
            var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMappingDto>, List<Vmo.AssetsExchangerMainAndPartMapVmo>>(DtoList);
            var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMappingDto>, List<Vmo.AssetsExchangerMainAndPartMappingVmo>>(DtoList);
            return vmoList;
        }
@@ -58,11 +58,11 @@
        /// <summary>
        ///
        /// </summary>
        public async Task<long> Insert(Vmo.AssetsExchangerMainAndPartMapVmo model)
        public async Task<long> Insert(Vmo.AssetsExchangerMainAndPartMappingVmo model)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, AddAssetsExchangerMainAndPartMappingInput>()
 ).CreateMapper();
            var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>(model);
            var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMappingVmo, AddAssetsExchangerMainAndPartMappingInput>(model);
            return await _cal.Insert(vmo);
        }
@@ -70,11 +70,11 @@
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> Inserts(List<Vmo.AssetsExchangerMainAndPartMapVmo> list)
        public async Task<bool> Inserts(List<Vmo.AssetsExchangerMainAndPartMappingVmo> list)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, AddAssetsExchangerMainAndPartMappingInput>()
 ).CreateMapper();
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<AddAssetsExchangerMainAndPartMappingInput>>(list);
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMappingVmo>, List<AddAssetsExchangerMainAndPartMappingInput>>(list);
            return await _cal.Inserts(vmoList);
        }
@@ -82,11 +82,11 @@
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> BulkInserts(List<Vmo.AssetsExchangerMainAndPartMapVmo> list)
        public async Task<bool> BulkInserts(List<Vmo.AssetsExchangerMainAndPartMappingVmo> list)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, AddAssetsExchangerMainAndPartMappingInput>()
).CreateMapper();
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<AddAssetsExchangerMainAndPartMappingInput>>(list);
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMappingVmo>, List<AddAssetsExchangerMainAndPartMappingInput>>(list);
            return await _cal.BulkInserts(vmoList);
        }
@@ -97,22 +97,22 @@
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> Update(Vmo.AssetsExchangerMainAndPartMapVmo model)
        public async Task<bool> Update(Vmo.AssetsExchangerMainAndPartMappingVmo model)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, UpdateAssetsExchangerMainAndPartMappingInput>()
).CreateMapper();
            var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>(model);
            var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMappingVmo, UpdateAssetsExchangerMainAndPartMappingInput>(model);
            return await _cal.Update(vmo);
        }
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> Updates(List<Vmo.AssetsExchangerMainAndPartMapVmo> list)
        public async Task<bool> Updates(List<Vmo.AssetsExchangerMainAndPartMappingVmo> list)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, UpdateAssetsExchangerMainAndPartMappingInput>()
).CreateMapper();
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<UpdateAssetsExchangerMainAndPartMappingInput>>(list);
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMappingVmo>, List<UpdateAssetsExchangerMainAndPartMappingInput>>(list);
            return await _cal.Updates(vmoList);
        }
@@ -120,11 +120,11 @@
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> BulkUpdates(List<Vmo.AssetsExchangerMainAndPartMapVmo> list)
        public async Task<bool> BulkUpdates(List<Vmo.AssetsExchangerMainAndPartMappingVmo> list)
        {
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>()
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, UpdateAssetsExchangerMainAndPartMappingInput>()
).CreateMapper();
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<UpdateAssetsExchangerMainAndPartMappingInput>>(list);
            var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMappingVmo>, List<UpdateAssetsExchangerMainAndPartMappingInput>>(list);
            return await _cal.BulkUpdates(vmoList);
        }