duheng
10 天以前 3ec9dc154c79b015a249509e84b2768bc52ec6e3
BLL/PBS.BLL/04-bll/04-elec-price/ElecPrice_Instance.cs
@@ -41,10 +41,10 @@
            var mapper = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap<PBS.Vmo.ElecPriceSetting, PBS.Dto.ElecPriceSetting>();
                cfg.CreateMap<PBS.Vmo.ElecPriceVmo, PBS.Dto.UpdateElecPriceInput>();
                cfg.CreateMap<PBS.Vmo.ElecPriceVmo, PBS.Dto.AddElecPriceInput>();
                cfg.CreateMap<PBS.Vmo.ElecPriceMonthSetting, PBS.Dto.ElecPriceMonthSetting>();
                cfg.CreateMap<PBS.Vmo.ElecPriceHourSetting, PBS.Dto.ElecPriceHourSetting>();
                cfg.CreateMap<PBS.Vmo.ElecPriceVmo, PBS.Dto.UpdateElecPriceInput>()
                cfg.CreateMap<PBS.Vmo.ElecPriceVmo, PBS.Dto.AddElecPriceInput>()
               .ForMember(dest => dest.Settings, opt => opt.MapFrom(src => src.Settings));
            }).CreateMapper();
            var dto = mapper.Map<PBS.Vmo.ElecPriceVmo, PBS.Dto.AddElecPriceInput>(vmo);