.NET Core 项目升级 AutoMapper 后遇到的 lambda 表达式问题
将 AutoMapper 由 7.0 升级至 8.0 后,下面的代码
cfg.CreateMap<JobOffer, Document>().ConstructUsing(j =>
{
//...
});Build 时报错
A lambda expression with a statement body cannot be converted to an expression tree请问如何解决?
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/835/viewspace-3127099/ ,如需转载,请注明出处,否则将追究法律责任。