jy-plc/Command/AutoMapper/CustomProfile.cs

26 lines
648 B
C#
Raw Normal View History

2024-07-24 13:30:21 +00:00
using AutoMapper;
using LangGuan.Command.Model.EntityModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace LangGuan.Command.AutoMapper
{
/// <summary>
/// CustomProfile
/// </summary>
public class CustomProfile : Profile
{
/// <summary>
/// 配置构造函数,用来创建关系映射
/// </summary>
public CustomProfile()
{
//第一个参数是原对象,第二个是目的对象
CreateMap<RadarView, Radar>();
//CreateMap<AlertSettingRequest, AlertSettingModel>();
}
}
}