文件名从 BLL/HStation.BLL.Assets.Core/04-bll/04-PipeLineRoughnessCoefficient/PipeLineRoughnessCoefficient.cs 修改 |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class PipeLineRoughnessCoefficient |
| | | public class PipeRoughnessCoefficient |
| | | { |
| | | private readonly HStation.CAL.IPipeLineRoughnessCoefficient _cal = CALCreateHelper.CreateCAL<HStation.CAL.IPipeLineRoughnessCoefficient>(); |
| | | |
| | |
| | | public async Task<List<Vmo.PipeLineRoughnessCoefficientVmo>> GetAll() |
| | | { |
| | | var DtoList = await _cal.GetAll(); |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.PipeLineRoughnessCoefficientDto, Vmo.PipeLineRoughnessCoefficientVmo>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.PipeRoughnessCoefficientDto, Vmo.PipeLineRoughnessCoefficientVmo>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Dto.Assets.PipeLineRoughnessCoefficientDto>, List<Vmo.PipeLineRoughnessCoefficientVmo>>(DtoList); |
| | | var vmoList = mapper.Map<List<Dto.Assets.PipeRoughnessCoefficientDto>, List<Vmo.PipeLineRoughnessCoefficientVmo>>(DtoList); |
| | | |
| | | return vmoList; |
| | | } |
| | |
| | | public async Task<Vmo.PipeLineRoughnessCoefficientVmo> GetByID(long ID) |
| | | { |
| | | var DtoList = await _cal.GetByID(ID); |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.PipeLineRoughnessCoefficientDto, Vmo.PipeLineRoughnessCoefficientVmo>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.PipeRoughnessCoefficientDto, Vmo.PipeLineRoughnessCoefficientVmo>() |
| | | ).CreateMapper(); |
| | | var vmo = mapper.Map<Dto.Assets.PipeLineRoughnessCoefficientDto, Vmo.PipeLineRoughnessCoefficientVmo>(DtoList); |
| | | var vmo = mapper.Map<Dto.Assets.PipeRoughnessCoefficientDto, Vmo.PipeLineRoughnessCoefficientVmo>(DtoList); |
| | | return vmo; |
| | | } |
| | | |
| | |
| | | public async Task<List<Vmo.PipeLineRoughnessCoefficientVmo>> GetByIds(List<long> Ids) |
| | | { |
| | | var DtoList = await _cal.GetByIds(Ids); |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.PipeLineRoughnessCoefficientDto, Vmo.PipeLineRoughnessCoefficientVmo>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.PipeRoughnessCoefficientDto, Vmo.PipeLineRoughnessCoefficientVmo>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Dto.Assets.PipeLineRoughnessCoefficientDto>, List<Vmo.PipeLineRoughnessCoefficientVmo>>(DtoList); |
| | | var vmoList = mapper.Map<List<Dto.Assets.PipeRoughnessCoefficientDto>, List<Vmo.PipeLineRoughnessCoefficientVmo>>(DtoList); |
| | | return vmoList; |
| | | } |
| | | |
| | |
| | | public async Task<List<Vmo.PipeLineRoughnessCoefficientVmo>> GetByPipeID(long PipeID) |
| | | { |
| | | var DtoList = await _cal.GetByPipeID(PipeID); |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.PipeLineRoughnessCoefficientDto, Vmo.PipeLineRoughnessCoefficientVmo>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.PipeRoughnessCoefficientDto, Vmo.PipeLineRoughnessCoefficientVmo>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Dto.Assets.PipeLineRoughnessCoefficientDto>, List<Vmo.PipeLineRoughnessCoefficientVmo>>(DtoList); |
| | | var vmoList = mapper.Map<List<Dto.Assets.PipeRoughnessCoefficientDto>, List<Vmo.PipeLineRoughnessCoefficientVmo>>(DtoList); |
| | | return vmoList; |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | public async Task<long> Insert(Vmo.PipeLineRoughnessCoefficientVmo model) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, AddPipeLineRoughnessCoefficientInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, AddPipeRoughnessCoefficientInput>() |
| | | ).CreateMapper(); |
| | | var vmo = mapper.Map<Vmo.PipeLineRoughnessCoefficientVmo, AddPipeLineRoughnessCoefficientInput>(model); |
| | | var vmo = mapper.Map<Vmo.PipeLineRoughnessCoefficientVmo, AddPipeRoughnessCoefficientInput>(model); |
| | | return await _cal.Insert(vmo); |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | public async Task<bool> Inserts(List<Vmo.PipeLineRoughnessCoefficientVmo> list) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, AddPipeLineRoughnessCoefficientInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, AddPipeRoughnessCoefficientInput>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Vmo.PipeLineRoughnessCoefficientVmo>, List<AddPipeLineRoughnessCoefficientInput>>(list); |
| | | var vmoList = mapper.Map<List<Vmo.PipeLineRoughnessCoefficientVmo>, List<AddPipeRoughnessCoefficientInput>>(list); |
| | | return await _cal.Inserts(vmoList); |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | public async Task<bool> BulkInserts(List<Vmo.PipeLineRoughnessCoefficientVmo> list) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, AddPipeLineRoughnessCoefficientInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, AddPipeRoughnessCoefficientInput>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Vmo.PipeLineRoughnessCoefficientVmo>, List<AddPipeLineRoughnessCoefficientInput>>(list); |
| | | var vmoList = mapper.Map<List<Vmo.PipeLineRoughnessCoefficientVmo>, List<AddPipeRoughnessCoefficientInput>>(list); |
| | | |
| | | return await _cal.BulkInserts(vmoList); |
| | | } |
| | |
| | | /// </summary> |
| | | public async Task<bool> Update(Vmo.PipeLineRoughnessCoefficientVmo model) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, UpdatePipeLineRoughnessCoefficientInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, UpdatePipeRoughnessCoefficientInput>() |
| | | ).CreateMapper(); |
| | | var vmo = mapper.Map<Vmo.PipeLineRoughnessCoefficientVmo, UpdatePipeLineRoughnessCoefficientInput>(model); |
| | | var vmo = mapper.Map<Vmo.PipeLineRoughnessCoefficientVmo, UpdatePipeRoughnessCoefficientInput>(model); |
| | | |
| | | return await _cal.Update(vmo); |
| | | } |
| | |
| | | /// </summary> |
| | | public async Task<bool> Updates(List<Vmo.PipeLineRoughnessCoefficientVmo> list) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, UpdatePipeLineRoughnessCoefficientInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, UpdatePipeRoughnessCoefficientInput>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Vmo.PipeLineRoughnessCoefficientVmo>, List<UpdatePipeLineRoughnessCoefficientInput>>(list); |
| | | var vmoList = mapper.Map<List<Vmo.PipeLineRoughnessCoefficientVmo>, List<UpdatePipeRoughnessCoefficientInput>>(list); |
| | | |
| | | return await _cal.Updates(vmoList); |
| | | } |
| | |
| | | /// </summary> |
| | | public async Task<bool> BulkUpdates(List<Vmo.PipeLineRoughnessCoefficientVmo> list) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, UpdatePipeLineRoughnessCoefficientInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.PipeLineRoughnessCoefficientVmo, UpdatePipeRoughnessCoefficientInput>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Vmo.PipeLineRoughnessCoefficientVmo>, List<UpdatePipeLineRoughnessCoefficientInput>>(list); |
| | | var vmoList = mapper.Map<List<Vmo.PipeLineRoughnessCoefficientVmo>, List<UpdatePipeRoughnessCoefficientInput>>(list); |
| | | |
| | | return await _cal.BulkUpdates(vmoList); |
| | | } |