using AutoMapper; using New_College.Model.Models; using New_College.Model.ViewModels; namespace New_College.AutoMapper { public class CustomProfile : Profile { /// /// 配置构造函数,用来创建关系映射 /// public CustomProfile() { CreateMap(); CreateMap(); } } }