You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.0 KiB
C#

using AutoMapper;
using Txgy.RBS.DbModel;
using Txgy.RBS.DbModel.Models;
using Txgy.RBS.DTO;
using Txgy.RBS.DTO.Reception;
using Txgy.RBS.Framework;
namespace Txgy.RBS.IServices
{
public class AutoMapObject : Profile
{
public AutoMapObject()
{
7 months ago
CreateMap<result, ResultDTO>().ReverseMap();
CreateMap<project_info, ProjectInfoDTO>()
.ForMember(p => p.timeTab, pd => pd.MapFrom(s => s.time_tab))
.ForMember(p => p.stationFile, pd => pd.MapFrom(s => s.station_file)).ReverseMap();
CreateMap<project_used,ProjectUsedDTO>().ReverseMap();
7 months ago
CreateMap<station, StationDTO>().ReverseMap();
CreateMap<station_file, StationFileDTO>().ReverseMap();
CreateMap<station_num_vpn,StationNumVpnDTO>().ReverseMap();
CreateMap<time_tab, TimeTabDTO>().ReverseMap();
CreateMap<global_config,GlobalConfigDTO>().ReverseMap();
CreateMap<redis_server, RedisInfoDTO>().ReverseMap();
}
}
}