You'll need to specify the underscore naming convention on the source side:
Mapper.Initialize(i =>
{
i.SourceMemberNamingConvention = new LowerUnderscoreNamingConvention();
i.CreateMap<Source, Dest>();
});
You can do that globally (as shown above) or per Profile, if only some of your source types follow this naming convention.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…