📜  第一个或默认 c# automapper - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:47.397000             🧑  作者: Mango

代码示例1
Mapper.CreateMap()
            .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.CLIENTID))
            .ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.Bar.FirstOrDefault???))