2026-03-04 09:05:31 +08:00
|
|
|
|
using AutoMapper;
|
|
|
|
|
|
using VOL.Entity.DomainModels.XinWei;
|
2026-03-27 10:53:02 +08:00
|
|
|
|
using YD_YiLu.Commons.Dto.Open;
|
2026-03-04 09:05:31 +08:00
|
|
|
|
|
2026-03-27 10:53:02 +08:00
|
|
|
|
namespace YD_YiLu.Api.AutoMappers
|
2026-03-04 09:05:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
public class MappingProfile : Profile
|
|
|
|
|
|
{
|
|
|
|
|
|
public MappingProfile()
|
|
|
|
|
|
{
|
|
|
|
|
|
// 建立对象之间的映射规则
|
|
|
|
|
|
// 如果有需要,您可以定义其他的映射规则
|
|
|
|
|
|
// CreateMap<SourceClass2, DestinationClass2>();
|
|
|
|
|
|
// ...
|
|
|
|
|
|
|
|
|
|
|
|
//CreateMap<AddHomeWorkDto, S_HomeWork>();
|
|
|
|
|
|
|
2026-03-27 10:53:02 +08:00
|
|
|
|
CreateMap<YL_Device, DeviceInfoDto>();
|
2026-03-04 09:05:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|