From f2333318a31e92f6cbc3a572d8eb9fae9da0f892 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期六, 12 十月 2024 13:59:15 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- Service/HStation.Service.Assets.Core/05-service/04-PipeLineRoughnessCoefficient/AdaptingManage_Instance.cs | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Service/HStation.Service.Assets.Core/05-service/04-PipeLineRoughnessCoefficient/AdaptingManage_Instance.cs b/Service/HStation.Service.Assets.Core/05-service/04-PipeLineRoughnessCoefficient/AdaptingManage_Instance.cs index adf8a83..dbe81aa 100644 --- a/Service/HStation.Service.Assets.Core/05-service/04-PipeLineRoughnessCoefficient/AdaptingManage_Instance.cs +++ b/Service/HStation.Service.Assets.Core/05-service/04-PipeLineRoughnessCoefficient/AdaptingManage_Instance.cs @@ -3,55 +3,55 @@ public partial class PipeLineRoughnessCoefficient { //Entity to GetModel - internal static Model.PipeRoughnessCoefficient Entity2Model(Entity.PipeRoughnessCoefficient entity) + internal static Model.AssetsPipeRoughnessCoefficient Entity2Model(Entity.AssetsPipeRoughnessCoefficient entity) { if (entity == null) return default; - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Entity.PipeRoughnessCoefficient, Model.PipeRoughnessCoefficient>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Entity.AssetsPipeRoughnessCoefficient, Model.AssetsPipeRoughnessCoefficient>() ).CreateMapper(); - var model = mapper.Map<Entity.PipeRoughnessCoefficient, Model.PipeRoughnessCoefficient>(entity); + var model = mapper.Map<Entity.AssetsPipeRoughnessCoefficient, Model.AssetsPipeRoughnessCoefficient>(entity); return model; } //Entities to GetModels - internal static List<Model.PipeRoughnessCoefficient> Entity2Models(List<Entity.PipeRoughnessCoefficient> entities) + internal static List<Model.AssetsPipeRoughnessCoefficient> Entity2Models(List<Entity.AssetsPipeRoughnessCoefficient> entities) { if (entities == null || entities.Count < 1) return default; - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Entity.PipeRoughnessCoefficient, Model.PipeRoughnessCoefficient>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Entity.AssetsPipeRoughnessCoefficient, Model.AssetsPipeRoughnessCoefficient>() ).CreateMapper(); - var models = mapper.Map<List<Entity.PipeRoughnessCoefficient>, List<Model.PipeRoughnessCoefficient>>(entities); + var models = mapper.Map<List<Entity.AssetsPipeRoughnessCoefficient>, List<Model.AssetsPipeRoughnessCoefficient>>(entities); return models; } //Model to Entity - internal static Entity.PipeRoughnessCoefficient Model2Entity(Model.PipeRoughnessCoefficient model) + internal static Entity.AssetsPipeRoughnessCoefficient Model2Entity(Model.AssetsPipeRoughnessCoefficient model) { if (model == null) return default; - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.PipeRoughnessCoefficient, Entity.PipeRoughnessCoefficient>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsPipeRoughnessCoefficient, Entity.AssetsPipeRoughnessCoefficient>() ).CreateMapper(); - var entity = mapper.Map<Model.PipeRoughnessCoefficient, Entity.PipeRoughnessCoefficient>(model); + var entity = mapper.Map<Model.AssetsPipeRoughnessCoefficient, Entity.AssetsPipeRoughnessCoefficient>(model); return entity; } //Models to Entities - internal static List<Entity.PipeRoughnessCoefficient> Model2Entities(List<Model.PipeRoughnessCoefficient> models) + internal static List<Entity.AssetsPipeRoughnessCoefficient> Model2Entities(List<Model.AssetsPipeRoughnessCoefficient> models) { if (models == null || models.Count < 1) return default; - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.PipeRoughnessCoefficient, Entity.PipeRoughnessCoefficient>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsPipeRoughnessCoefficient, Entity.AssetsPipeRoughnessCoefficient>() ).CreateMapper(); - var entities = mapper.Map<List<Model.PipeRoughnessCoefficient>, List<Entity.PipeRoughnessCoefficient>>(models); + var entities = mapper.Map<List<Model.AssetsPipeRoughnessCoefficient>, List<Entity.AssetsPipeRoughnessCoefficient>>(models); return entities; } //Model to Entity - internal static void Model2Entity(Model.PipeRoughnessCoefficient model, Entity.PipeRoughnessCoefficient entity) + internal static void Model2Entity(Model.AssetsPipeRoughnessCoefficient model, Entity.AssetsPipeRoughnessCoefficient entity) { if (model == null || entity == null) return; - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.PipeRoughnessCoefficient, Entity.PipeRoughnessCoefficient>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsPipeRoughnessCoefficient, Entity.AssetsPipeRoughnessCoefficient>() ).CreateMapper(); mapper.Map(model, entity); } -- Gitblit v1.9.3