using AutoMapper; namespace Tiobon.Core.AutoMapper { /// /// 静态全局 AutoMapper 配置文件 /// public class AutoMapperConfig { public static MapperConfiguration RegisterMappings() { return new MapperConfiguration(cfg => { cfg.AddProfile(new CustomProfile()); }); } } }