26 lines
648 B
C#
26 lines
648 B
C#
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>();
|
|
}
|
|
}
|
|
}
|