0
    Mapper.CreateMap<Product, SelectListOptionItem>()
        .ForMember(dest => dest.Text, opt => opt.MapFrom(src => src.Description))
        .ForMember(dest => dest.Value, opt => opt.MapFrom(src => src.Id));

Product.TypeId には個別の使用が必要です

4

0 に答える 0