摘要:
创建和使用Map?Mapper.CreateMap() .ForMember(dest=> dest.Property, opt => opt.MapFrom(src => src.OtherProperty)) .ForMember(dest => dest.IgnoreProperty, opt => opt.Ignore()); 然后就可以使用这个Map了:?DestinationType dest = Mapper.Map(source);Mapper.AssertConfigurationIsValid();用于检查映射是否完整,Destinate mo 阅读全文