using AutoMapper; using LangGuan.Command.Model.EntityModel; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace LangGuan.Command.AutoMapper { /// /// CustomProfile /// public class CustomProfile : Profile { /// /// 配置构造函数,用来创建关系映射 /// public CustomProfile() { //第一个参数是原对象,第二个是目的对象 CreateMap(); //CreateMap(); } } }