Configure a mapper from string to List<string> and from List<string> to string
See original GitHub issueI am trying to configure Napster of these two entities to pass from List to string but it gives me an error. any ideas. Thank you
public class EntidadVM
{ public List<string> CCC}
public class EntidadDto
{ public string CCC}
I’m doing them like this, but it gives me an error
TypeAdapterConfig<MailingDto, MailingVM>.NewConfig()
.Map(dest => dest.CCC, src => new List<string>(src.CCC.Split(',')).ToList() );
TypeAdapterConfig<MailingDto, MailingVM>.NewConfig()
.Map(dest => dest.CCC, src => src.CCC.Split(',').ToList() );
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Mapping string to List<string> and vice versa using ...
I have no idea how to map between these 2. My current setup : Mapper.CreateMap<UserEditViewModel, User>().ReverseMap();. c# · asp ...
Read more >How to convert Map<String,List<String>> to Map< ...
You need to create a new user for each iteration through the loop: for(String uMap : usersMap. ... Values__c = string.join(usersMap.get(u.
Read more >Convert List<Map<String,String>> to List<String> - Java
Convert List > to List by values from map.
Read more >Jackson - Convert JSON array string to List
Few Jackson examples to convert a JSON array string to a List // JSON array string ... 1.2 Create an object to map...
Read more >Converting a List to String in Java
In this quick tutorial, we'll explain how to convert a List of elements to a String. This can be useful in certain scenarios,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@ascariz
@ignacioerrico I don’t have the right to manage the issue 😅 It just turned out that I’m subscribed to this topic, so I quickly replied to you 😊