From ca5f300a7cef85d22b5e0f9d59d117c49f9909b3 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期二, 19 十一月 2024 09:42:16 +0800 Subject: [PATCH] 完善资产界面 --- Service/HStation.Service.Assets.Core/05-service/11-Exchanger/05-ExchangerMainAndPartMapping/ExchangerMainAndPartMapping_Instance.cs | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Service/HStation.Service.Assets.Core/05-service/11-Exchanger/05-ExchangerMainAndPartMapping/ExchangerMainAndPartMapping_Instance.cs b/Service/HStation.Service.Assets.Core/05-service/11-Exchanger/05-ExchangerMainAndPartMapping/ExchangerMainAndPartMapping_Instance.cs index dbae3eb..919cf7c 100644 --- a/Service/HStation.Service.Assets.Core/05-service/11-Exchanger/05-ExchangerMainAndPartMapping/ExchangerMainAndPartMapping_Instance.cs +++ b/Service/HStation.Service.Assets.Core/05-service/11-Exchanger/05-ExchangerMainAndPartMapping/ExchangerMainAndPartMapping_Instance.cs @@ -3,55 +3,55 @@ public partial class AssetsExchangerMainAndPartMapping { //Entity to GetModel - internal static Model.AssetsExchangerMainAndPartMap Entity2Model(Entity.AssetsExchangerMainAndPartMap entity) + internal static Model.AssetsExchangerMainAndPartMap Entity2Model(Entity.AssetsExchangerMainAndPartMapping entity) { if (entity == null) return default; - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Entity.AssetsExchangerMainAndPartMap, Model.AssetsExchangerMainAndPartMap>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Entity.AssetsExchangerMainAndPartMapping, Model.AssetsExchangerMainAndPartMap>() ).CreateMapper(); - var model = mapper.Map<Entity.AssetsExchangerMainAndPartMap, Model.AssetsExchangerMainAndPartMap>(entity); + var model = mapper.Map<Entity.AssetsExchangerMainAndPartMapping, Model.AssetsExchangerMainAndPartMap>(entity); return model; } //Entities to GetModels - internal static List<Model.AssetsExchangerMainAndPartMap> Entity2Models(List<Entity.AssetsExchangerMainAndPartMap> entities) + internal static List<Model.AssetsExchangerMainAndPartMap> Entity2Models(List<Entity.AssetsExchangerMainAndPartMapping> entities) { if (entities == null || entities.Count < 1) return default; - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Entity.AssetsExchangerMainAndPartMap, Model.AssetsExchangerMainAndPartMap>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Entity.AssetsExchangerMainAndPartMapping, Model.AssetsExchangerMainAndPartMap>() ).CreateMapper(); - var models = mapper.Map<List<Entity.AssetsExchangerMainAndPartMap>, List<Model.AssetsExchangerMainAndPartMap>>(entities); + var models = mapper.Map<List<Entity.AssetsExchangerMainAndPartMapping>, List<Model.AssetsExchangerMainAndPartMap>>(entities); return models; } //Model to Entity - internal static Entity.AssetsExchangerMainAndPartMap Model2Entity(Model.AssetsExchangerMainAndPartMap model) + internal static Entity.AssetsExchangerMainAndPartMapping Model2Entity(Model.AssetsExchangerMainAndPartMap model) { if (model == null) return default; - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsExchangerMainAndPartMap, Entity.AssetsExchangerMainAndPartMap>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsExchangerMainAndPartMap, Entity.AssetsExchangerMainAndPartMapping>() ).CreateMapper(); - var entity = mapper.Map<Model.AssetsExchangerMainAndPartMap, Entity.AssetsExchangerMainAndPartMap>(model); + var entity = mapper.Map<Model.AssetsExchangerMainAndPartMap, Entity.AssetsExchangerMainAndPartMapping>(model); return entity; } //Models to Entities - internal static List<Entity.AssetsExchangerMainAndPartMap> Model2Entities(List<Model.AssetsExchangerMainAndPartMap> models) + internal static List<Entity.AssetsExchangerMainAndPartMapping> Model2Entities(List<Model.AssetsExchangerMainAndPartMap> models) { if (models == null || models.Count < 1) return default; - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsExchangerMainAndPartMap, Entity.AssetsExchangerMainAndPartMap>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsExchangerMainAndPartMap, Entity.AssetsExchangerMainAndPartMapping>() ).CreateMapper(); - var entities = mapper.Map<List<Model.AssetsExchangerMainAndPartMap>, List<Entity.AssetsExchangerMainAndPartMap>>(models); + var entities = mapper.Map<List<Model.AssetsExchangerMainAndPartMap>, List<Entity.AssetsExchangerMainAndPartMapping>>(models); return entities; } //Model to Entity - internal static void Model2Entity(Model.AssetsExchangerMainAndPartMap model, Entity.AssetsExchangerMainAndPartMap entity) + internal static void Model2Entity(Model.AssetsExchangerMainAndPartMap model, Entity.AssetsExchangerMainAndPartMapping entity) { if (model == null || entity == null) return; - var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsExchangerMainAndPartMap, Entity.AssetsExchangerMainAndPartMap>() + var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Model.AssetsExchangerMainAndPartMap, Entity.AssetsExchangerMainAndPartMapping>() ).CreateMapper(); mapper.Map(model, entity); } -- Gitblit v1.9.3